开发者

separate rmiregistry and server application

开发者 https://www.devze.com 2022-12-16 22:31 出处:网络
I\'m developing a basic application that starts the rmiregistry at the server: try { // create the registry and bind the name and object.

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

精彩评论

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