开发者

separate rmiregistry and server application

I'm developing a basic application that starts the rmiregistry at the server:

try {
            // create the registry and bind the name and object.
            registry = LocateRegistry.createRegistry(thisPort);
            registry.rebind("rmiServer", this);
        }
        catch (RemoteException e) {
            t开发者_Python百科hrow e;
        }

I want to run the registry on another machine. Is it possible to separate this?


I want to run the registry on another machine. Is it possible to separate this?

Its possible. If the registry is running on a different machine, you can locate it using LocateRegistry.getRegistry(host, port)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜