Set the thread to act like a daemon. It's a Thread [class] thing.
There are ten better ways to resolve the same problem without threads. Viorel Dragomir . .. ------------------------------------------------------------------- ----- Original Message ----- From: Mark To: tomcat-user@jakarta.apache.org Sent: Tuesday, March 15, 2005 17:31 Subject: running a thread in Tomcat Hi, I'm starting a new thread in my init servlet(I know it has been discussed few time, that it's not the best idea, but anyway) and everyhing is fine untill I need to restart tomcat. When I shutdown (shutdown.sh) Tomcat the java process remain active. The question is it expected? or I need to take care about this thread in destroy() method of my init servlet? I have tomcat 5.0.24 on RH9. Thanks a lot, Mark. __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]