A lifecycle Listener is what I was thinking.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

See the section on "Lifecycle Listener".  YMMV...as I said I am no
developer.

John


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 12:13 PM
To: [EMAIL PROTECTED]
Subject: RE: RE: Shutdown.sh does not work when long lasting operations,
such as SQL Queries, are still active!


Unfortunately there is no way to stop a thread (Thread.stop() is deprecated
and the native code, the threads are, in ignore Thread.interrupt()). What
kind of listener do you mean? We extended the javax.servlet.http.HttpServlet
class, but the destroy method does not get called until all http processor
threads have terminated.

> I think what you want to do is add/write a Listener that will look for 
> the shutdown event and kill the threads and take other actions as 
> appropriate. But, I'm no developer, so others might have better 
> solution.
>
> John



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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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

Reply via email to