Ulises Pulido wrote:What I did to solve the problem was to follow an advice from another folk here at JavaRanch who used a GUI to not let the thread die and for the server to keep running.
Nope - that's not the problem (in fact most people here have the opposite problem - they find that they can't stop the registry programatically, so they create a GUI so they can force the server to shutdown).
K. Tsang - what is DBRemote - is that your interface? Can you please provide the signature for that interface? Not for the methods within it, just the interface itself.
Likewise, can you please provide the signature for the RemoteData class?
Thanks Andrew for your comments. In fact, I kinda figured it out myself why the RMI doesn't keep running. The fact is in my RemoteData class, which implements DBRemote interface. At first I have the following: