dcsimg

How do I create an RMI registry without using the rmiregistry program?

Avi Kak

By using the LocateRegistry.createRegistry( int port ) method in the program that hosts your server object. For a quick example, see the code in the Feedback and Comments section of jGuru RMI FAQ Entry 1002. The RMI registry in that program is started by the invocation LocateRegistry.createRegistry( 1099 ) in the HelloServer.java class file.