tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: Programmatic instruct Tomcat to shutdown
Date Thu, 16 Oct 2008 12:14:00 GMT
On Thu, Oct 16, 2008 at 1:31 PM, Maxim Veksler <maxim.veksler@gmail.com> wrote:
> On Wed, Oct 15, 2008 at 21:07, Filip Hanik - Dev Lists
> <devlists@hanik.com>wrote:
>
>> you mean like
>>
>> java.lang.System.exit(1);
>>
>>
> Not quite.
>
> I've commented that I've tried System.exit(1); and it's fails because I have
> threads that aren't going down by this instruction. The need the Servlet
> notification of a shutdown event.
>
> That's the reason for my query of doing "ordered shutdown".
>
> Thank you for your help.

u mean as in
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)
Leon

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message