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:[EMAIL PROTECTED]
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to