tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
Subject Re: Spawn New Thread
Date Thu, 10 Jun 2004 01:16:49 GMT
If the thread is associated with a servlet. It would be best to use the 
destroy method of the servlet to stop the thread.


Corey Baswell wrote:

> Hello,
> I'm trying to figure out what the proper way for spawning a new thread 
> in Tomcat is.  I can create a new thread when my servlet is first 
> loaded, but it does not get closed down when tomcat does. Is there 
> anyway to register a new thread with Tomcat so that it will get closed 
> when Tomcat goes down?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message