dev@glassfish.java.net

Re: [V3] Web container not destroyed during domain shutdown

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Tue, 12 Aug 2008 10:32:43 -0700

Byron Nevins wrote:
> I noticed this behavior in embedded -- a clean shutdown of GF is
> impossible, the System.exit() sledgehammer has to be used...

Why? Who does not "normally" respond to the "stop" call?
I thought the sledgehammer was needed "just in case ...".

>
> Jan Luehe wrote:
>> Right now, the web container is not stopped (i.e., not called at its
>> preDestroy() method) when the domain shuts down.
>>
>> It looks like AppServerStartup.stop() only shuts down those objects
>> in the habitat that implement Startup (e.g., GrizzlyService) or Init,
>> neither
>> of which apply to the web container.
>>
>> What would be the best way to notify the web container (and I imagine
>> other containers as well) of a domain shutdown?
>>
>> Thanks,
>>
>> Jan
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>