tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Question about undeploying application
Date Thu, 12 Aug 2010 16:09:03 GMT
> From: Ivan Mladenović [mailto:piffta@gmail.com]
> Subject: Question about undeploying application
> 
> Deployed application have some threads that are running 
> in background.

Then deployed application must stop those threads as part of its shutdown procedure.  Tomcat
can't do it for you.  You should be using a ServletContextListener in your webapp, so it can
properly manage the threads when its contextDestroyed() method is invoked.

> Can I configure Tomcat to kill all treads when application
> is undeployed?

No, that's the webapp's job.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


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


Mime
View raw message