Re: Database connections and stopping an RMI server on demand
Posted By:
Vishnu_Varma
Posted On:
Monday, May 6, 2002 05:09 PM
also you can register shutdown hook with your rmi server, in which you can release all the database connections. Shutdown hooks are supported jdk1.3 onwards...see the java.lang.Runtime api.
-Vishnu
Re: Database connections and stopping an RMI server on demand
Posted By:
Bob_Lee
Posted On:
Wednesday, May 1, 2002 02:18 PM
You can implement a programmatic shutdown. Register a remote admin object that has a shutdown() method. The shutdown() method can in turn call a shutdown() method on your business object which will release the database connections. Then the admin object can unbind the instances from the rmiregistry.