RMI Registry and Naming
I am new to RMI;What is the difference between the Registry and naming services for lookup?
I see examples that do:
Registry registry = LocateRegistry.getRegistry(RemoteInterface.REGISTRY_PORT);
RemoteInterface remoteReference =
(RemoteInterface) UnicastRemoteObject.exportObject(new Server());
registry.rebind(RemoteInterface.REGISTRY_NAME, remoteReference);
as well as examples that do :
AccountImpl acct = new AccountImpl("JimF");
// Register it with the local naming registry
Naming.rebind("JimF", acct);
So what's the difference in binding to registry and naming service.I understand that both of them refer to the Registry in any case.

