users@jersey.java.net

Re: [Jersey] dynamically call _at_preDestroy

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 16 Jan 2009 17:57:06 +0100

On Jan 16, 2009, at 5:55 PM, Guilhem wrote:

> hi Paul,
>
> thanks you, i try with the 1.0.2-SNAPSHOT this is working.
>

Great, thanks for verifying,
Paul.

> Guilhem Legal
>
> Paul Sandoz a écrit :
>> Hi Guilhem,
>>
>> It is a bug, When reload was getting called the old WebApplication
>> instance was not being destroyed because WebApplication.destroy was
>> not called.
>>
>> I have fixed it. Can you verify with 1.0.2-SNAPSHOT?
>>
>> Paul.
>>
>> On Jan 16, 2009, at 11:47 AM, Guilhem wrote:
>>
>>> hi,
>>>
>>> I have some jersey service using the @preDestroy anotations to
>>> close the database connection and other stuff.
>>> I have also a configuration service allowing to dynamically
>>> restart all my web services (using ContainerNotifierImpl cn =>
>>> cn.reload() )
>>>
>>> When i undeploy my application in tomcat the destroy method is
>>> succesfully called , the problem is that if i use the dynamic
>>> restart the method destroy is not called.
>>>
>>> How can i call the @preDestroy method when doing
>>> ContainerNotifierImpl.reload() ?
>>>
>>> Guilhem Legal
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>