dev@glassfish.java.net

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

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Thu, 14 Aug 2008 09:14:11 -0700

On Aug 12, 2008, at 12:50 PM, Lloyd Chambers wrote:

> Jerome and I talked at one point of a system facility to notify
> components of a pending shutdown.
>
> I'm not aware that such a facility exists yet.
it does, well almost...

the interface is there, the shutdown hook is not installed since there
were no consumers yet.
I am planning to turn this on today or tomorrow.

jerome

>
>
> I think it would make sense for anything to be able to register
> itself with such a facility, so that any random object could
> participate.
>
> Lloyd
>
>
> On Aug 12, 2008, at 12:48 PM, Jan.Luehe_at_Sun.COM wrote:
>
>>
>> Kedar Mhaswade wrote:
>>
>>>
>>>
>>> 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?
>>
>>
>> Is there any "stop" event?
>>
>> Jan
>>
>>
>>> 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
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>