at this point, you can go in and mess with the source code.
If you look at the class StandardServer, it sends out an event before shutting down

you would get the server by

ServerFactory.getServer().addListener (check the names of the methods)

Filip

-----Original Message-----
From: Frank Lawlor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 11:27 AM
To: Tomcat
Subject: RE: How to listen for shutdown


Let me try to explain this better,

 

The problem seems to be that Tomcat is shutting down the asynchronous
threads
BEFORE I can cleanly tell them to shutdown (from my servlet
contextDestroyed() method).

I tried getting control with finalize() in the thread instance, but this
didn't seem to get called.

 

In general there should be some way to cleanly shutdown the entire app
before Tomcat starts
destructing threads and instances.

 

I cannot put a web.xml entry for the thread since it is not a servlet.

 

Any suggestions?

 

  -- Frank

 

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to