The rmiregistry
rmiregistry is the standard naming registry service provided with Java.
- You can write your own service by implementing the java.rmi.registry interface, including the Naming class methods of bind, rebind, unbind, list, lookup, etc.
The name given to rebind should be a string of the form: Naming.rebind(“//osprey7:1099/HelloServer”, obj); where the machine name can default to the current host the port number can default to the default registry port, 1099
Example call to rebind for the main method in HelloImpl: Naming.rebind(“HelloServer”, obj);
Look at full example Hello.java and HelloImpl.java