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
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
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
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