users@jersey.java.net

Re: [Jersey] dynamically call _at_preDestroy

From: Guilhem <guilhem.legal_at_geomatys.fr>
Date: Fri, 16 Jan 2009 17:55:45 +0100

hi Paul,

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

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
>
>
>