You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Aleksandr Elbakyan <ra...@yahoo.com> on 2009/03/11 00:17:15 UTC

Not able to shutdown tomcat

Hello,

I have tomcat running with thread pool inside which has Callable threads in it.
And there are not daemon threads

When I am shutting down tomcat the tomcat is not getting shutdown and is waiting until all threads in the pool will be done. But there there are threads which are never done. So I need somehow shut down thread pool manually from some other tomcat shutdown listener thread.

Please if you have any idea share.

Are there any static variables in the tomcat which will be set when I am doing shutdown?


Thanks
Alexxx



      

RE: Not able to shutdown tomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Aleksandr Elbakyan [mailto:ramalex1@yahoo.com] 
> Subject: Not able to shutdown tomcat
> 
> So I need somehow shut down thread pool manually from 
> some other tomcat shutdown listener thread.

You need to implement a ServletContextListener that will terminate your threads when the associated webapp is being stopped.  See section 10 of the servlet spec:
http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html

 - 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