In order to stop the Jonas server a call is made to the stopServer method of
the Adm class. A copy of it follows:
public void stopServer() throws RemoteException {
Trace.outln(trace, "Adm.stopServer() ");
if (isTM == false) {
try {
ejbserv.stop();
} catch (Exception e) {
Trace.errln("Cannot remove containers" + e);
throw new RemoteException("Cannot remove containers", e);
}
try {
dbm.unbindDataSources();
} catch (Exception e) {
Trace.errln("Cannot unbind datasources" + e);
throw new RemoteException("Cannot unbind datasources ", e);
}
try {
jms.stop();
} catch (Exception e) {
}
}
System.exit(0); <<<------------------------
}
The last statement is System.exit(0) which is killing the JVM.
My Questions are:
1. Is there a way to stop the server without killing the JVM?
2. I want to be able to perform the System.exit(0) from my code
rather than letting the stopServer method do it?
3. What are my options to cleanly shut down Jonas?
Any help in this matter would be highly appreciated.
Thanks in advance for all the help.
Murad Meghani
Consultant
Compuware Corporation
15305 Dallas Parkway, Suite 900
Addison, Texas, 75001
972-960-0960 x1379
www.compuware.com
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".