| Graceful shutdown of Tomcat - How? [message #522184] |
Sat, 20 March 2010 18:50  |
Mike Messages: 1 Registered: March 2010 |
Junior Member |
|
|
Hi,
I have Tomcat running from within Eclipse using WTP and can control startup and shutdown from the Servers View. However, when I click on Stop for a running Tomcat, the server shuts down but doesn't seem to do so gracefully, i.e. my 'listener-class' specified in 'web.xml' never gets to execute its 'contextDestroyed()' method (at least, I am not seeing my logs in the log file).
When I run the same code in a standalone Tomcat installation, calling the 'startup.sh' and 'shutdown.sh' scripts manually from a console, the contextDestroyed() method is executed and I see my logging statements in the logfile.
Is there a way to shutdown Tomcat gracefully from within WTP so that my listeners get to destroy themselves?
Thanks
|
|
|