我正在开发一个在服务器端启动rmiregistry的基本应用程序:
try {
// create the registry and bind the name and object.
registry = LocateRegistry.createRegistry(thisPort);
registry.rebind("rmiServer", this);
}
catch (RemoteException e) {
throw e;
}我想在另一台机器上运行注册表。有没有可能把它分开呢?
发布于 2010-01-18 23:05:21
我想在另一台机器上运行注册表。有没有可能把它分开呢?
这是可能的。如果注册表在不同的计算机上运行,则可以使用LocateRegistry.getRegistry(host, port)进行定位
https://stackoverflow.com/questions/2086687
复制相似问题