Hi everyone,
i got a little question about the Java RMI Registry.
In our Software use a RMI Registry.
Instead of doing this by starting an rmid we start the registry directly in the Code.
Registry registry = java.rmi.registry.LocateRegistry.createRegistry(registryPort);
Everything works 100% perfectly.
The only thing we would like to do is to destroy this factory again programmatically.
Any Ideas ?
Volker
Esmond Pitt - 15 Feb 2007 04:06 GMT
> Hi everyone,
>
[quoted text clipped - 3 lines]
> The only thing we would like to do is to destroy this factory again
> programmatically.
UnicastRemoteObject.unexportObject(registry, true);
This only works if 'registry' is the result returned by
LocateRegistry.createRegistry(), and specifically *not* by
LocateRegistry.getRegistry().