JVM Shutdown Hooks - reason for shutdown

Hi

When using

Runtime.getRuntime().addShutdownHook(new Thread(){

publicvoid run(){

doOrderlyShutdown(true);

}

});

is there any way to determine more information on why we have a shutdown? What could I do in doOrderlyShutdown to determine more information on why the JVM has to terminate (e.g. CTRL-C or box shutting down etc.)

Help much appreciated

Lance

[656 byte] By [LanceJa] at [2007-11-26 23:51:14]
# 1
Resolved this using Tanuki Software Java Service Wrapper.
LanceJa at 2007-7-11 15:29:45 > top of Java-index,Core,Monitoring & Management...