tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eric perso" <e...@aboudaram.net>
Subject RE : A proper way to stop thread ?
Date Thu, 20 Nov 2003 16:28:18 GMT
Put it on null ,not?

> -----Original Message-----
> From: Laurent Michenaud [mailto:lmichenaud@adeuza.fr] 
> Sent: Thursday, November 20, 2003 5:26 PM
> To: tomcat-user@jakarta.apache.org
> Subject: A proper way to stop thread ?
> 
> 
> Hi,
>  
> We are using Timer in our web application.
>  
> We are wondering how to stop the Timer when tomcat shutdown.
>  
> For the moment, we add Timer.cancel() in the destroy() of the servlet
> that launches the Timer.
>  
> I don't know if it is good or not.
>  
> When is a servlet killed ? at tomcat shutdown or when it is not used
> anymore ( GC ) ?
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message