users@jersey.java.net

Re: [Jersey] dynamically call _at_preDestroy

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 16 Jan 2009 16:19:27 +0100

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
>