I'm missing something about the difference between
- starting rmiregistry at the command prompt (separately from whatever Java process is running a server that implements an RMI interface)
- having the server call
LocateRegistry.getRegistry()
- having the server call
LocateRegistry.createRegistry(Registry.REGISTRY_PORT)
I just want my server to register its exported objects with the registry, creating one if there isn't one running already. What's the best way to do this?