tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: stopping all the java threads when tomcat stops
Date Wed, 11 Aug 2004 13:30:28 GMT
Hi,
Years ago, I posted a SystemThreadList class to the mailing list: search
the archives.  It will let you access and stop any thread in your JVM.
Of course if you're running with a security manager, you would need to
configure the policy file appropriately.

However, instead of doing this brute-force approach, try looking for a
Quartz shutdown method that will stop all its threads more gracefully.
In fact, a casual glance at the JavaDoc shows Scheduler#shutdown which
should do what you want.


Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Jignesh Patel [mailto:jpatel@bangtechnology.com]
>Sent: Wednesday, August 11, 2004 6:58 PM
>To: Tomcat Users List
>Subject: stopping all the java threads when tomcat stops
>
>Hi All,
>
>As on previous topic we discussed for developing listener to stop the
>application. Now our confusion is we are using quartz application with
>tomcat, so when we stop the tomcat it never stops. We want to develop a
>listener which listens on stopping the server and in turn stops all the
>running threads. We used garbage collector and context listener but we
>couldn't able to do it.
>
>Any suggestion appreciated in this topic.
>
>-Jignesh
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
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