|
From: Leif M. <le...@ta...> - 2005-04-13 12:24:22
|
Nick,
Calling System.exit() is considered as a normal shutdown request by
the Wrapper.
It will cause the Wrapper to shutdown normally. If on the other hand,
you call
Runtime.getRuntime().halt() the Wrapper will interpret is as the JVM
crashing and it
will be restarted. This is because the exit() causes shutdown hooks to
run whereas
halt() does not.
You can add some control over what happens when the JVM exits by
setting up
Event handlers based on the JVM exit code. See the following for details:
http://wrapper.tanukisoftware.org/doc/english/prop-on-exit-n.html
Cheers,
Leif
nic...@uk... wrote:
>Leif,
>
>If someone puts an inadvertant System.exit() in the code, will the wrapper
>restart it?
>
>-Nick
>
>
|