Hi,

Tomcat won't know anything about your Thread just because you created it in 
init(). Tomcat does not monitor your threads, you need to manage them yourself 
if you insist on creating them which many will tell you is naughty. Maybe you 
can kill your Thread in the destroy() method of the same servlet, since it 
sounds like you may have a class member reference to your thread in there. 

Cheers, Allistair.

> -----Original Message-----
> From: Mark [mailto:[EMAIL PROTECTED]
> Sent: 15 March 2005 15:32
> To: tomcat-user@jakarta.apache.org
> 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]
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com";>www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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

Reply via email to