我尝试在linux (centos6)上使用on server。它说“创建了远程对象: localhost:44750”。但是主机名不应该是"localhost“。因此,如果我在另一台服务器上尝试以下命令,则我的try母版失败:
Created the tree successfully using /root/myRequest.jmx
Configuri
class RMIConfigBean {
public NameService nameService() { rmi.setServiceUrl("rmi://localhost:8000/NameService");rmi.setServiceInterface(NameService.class);