You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ravi116 <ra...@countrywide.com> on 2007/02/28 18:13:10 UTC

Valve post lifecycle event

I wish to cleanup resources inside a valve on server shutdown (stop a
scheduler). Is there anyway to do this ?
Ravi
-- 
View this message in context: http://www.nabble.com/Valve--post-lifecycle-event-tf3310448.html#a9208545
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Valve post lifecycle event

Posted by Bill Barker <wb...@wilshire.com>.
"Ravi116" <ra...@countrywide.com> wrote in message 
news:9208545.post@talk.nabble.com...
>
> I wish to cleanup resources inside a valve on server shutdown (stop a
> scheduler). Is there anyway to do this ?

If all you want to do is cleanup, then a LifecycleListener is better than a 
Valve (which is for request processing).  If you really want a Valve, then 
just have it implement Lifecycle as well.

> Ravi
> -- 
> View this message in context: 
> http://www.nabble.com/Valve--post-lifecycle-event-tf3310448.html#a9208545
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org