|
From: <nic...@uk...> - 2005-04-13 23:07:27
|
Hi Leif,
Thanks for the answer.
(I am continually pleasantly surprised/impressed on the implementation
quality/completeness of Java Service Wrapper.... :-)
-Nick
Internet
le...@ta...@lists.sourceforge.net - 13/04/2005 13:23
Please respond to wra...@li...
Sent by: wra...@li...
To: wrapper-user
cc:
Subject: Re: [Wrapper-user] Shutdown hook not triggered when jvm is
unexpectedly killed
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
>
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
**********************************************************************************************
BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in the
United Kingdom.
BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in the
United Kingdom.
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority.
|