tags:

views:

46

answers:

1

Hi!

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) {
            throw e;
        }

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

+3  A: 

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)

Kevin