Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: How does one get notified of webapp shutdown in the webapp to
do clean up?

Tim Funk

2004-05-28

Replies:

See ServletContextListener

-Tim

Dev Team wrote:
> Hello,
>
>  I'm using OpenJMS embedded in Tomcat 5.0.24 and when ever I do a shutdown
> Tomcat can't shutdown completely because OpenJMS server is still running in
> its own thread ( I presume ).  If I use the OpenJMS management classes and
> tell the server to shutdown, then tell Tomcat to shutdown, everything is
> fine.   So the question is..  is their some kind of web-app.finallize()
> where I can register a listener or something to do some clean up right
> before it stops the web-app?

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.