On Wed, Oct 15, 2008 at 21:07, Filip Hanik - Dev Lists
<[EMAIL PROTECTED]>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.


>
> Filip


Maxim.


>
>
> Maxim Veksler wrote:
>
>> Hello,
>>
>> I would like to forcefully cause my application server to fail once I
>> discover a situation I can't recover from. We have HA that should handle
>> the
>> situation from there.
>>
>> The best way I can see this happening is by issuing a shutdown instruction
>> to the container, but I can't find how to do this "peacefully". I tried
>> the
>> System.exit(1) trick but this keeps running threads active because they do
>> not get the shutdown notification.
>>
>> How should I properly call server shutdown from my webapp ?
>>
>>
>> Thank you,
>> Maxim.
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

Reply via email to