RE: addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Elie Medeiros
A-ha - it seems the shutdown hook does not get called when tomcat is run as a service, but does seems to get called when run as standalone. In that case it would seem that the problem would lie with the way the service is configured (ie what it does to stop) compared to the standalone version, I ha

RE: addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Shapira, Yoav
Hi, You're probably removing the shutdown hook too early. Why are you removing it at all? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Elie Medeiros [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 03, 2004 5:44 AM >To: [EMAIL PROTECTED] >Subject: addShutdownHook

RE: addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Elie Medeiros
mainly because i was trying to write a single class for both the tomcat and standalone versions, and also to avoid making the business logic dependent on a web environment. (ie to provide fail-safeness within the business logic, rather than it being an external service that needs to be checked) El

RE: addShutdownHook in Tomcat does not seem to get called on shutdown

2004-03-03 Thread Peter Guyatt
Hi There, Why not use the ServletContextListener interface to do all of your cleanup stuff when the contextDestroyed method is called ? Pete -Original Message- From: Elie Medeiros [mailto:[EMAIL PROTECTED] Sent: 03 March 2004 10:44 To: [EMAIL PROTECTED] Subject: addShutdownHook i