Java Mailing List Archive

http://www.junlu.com/

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

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

Dev Team

2004-05-28


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?



Thanks for any help,



Rick







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