t; From: "TK Banks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 09, 2004 4:40 PM
> Subject: Killing threads during context restart
>
>
> I have a background thread object in my tomcat
> application that performs some garbage-co
From: "TK Banks" <[EMAIL PROTECTED]>
> I guess I don't even know what a context is, but I
> assumed that a context restart would kill off all
> application threads. How am I supposed to get all my
> application threads to die when the context restarts?
What about creating a ServletContextListener
you can setup context listeners, and when the context is stopped you will
receive an event and can stop your bg thread
Filip
- Original Message -
From: "TK Banks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 09, 2004 4:40 PM
Subject: Killing
I have a background thread object in my tomcat
application that performs some garbage-collection like
functions (i.e., wakes up periodically and does some
application specific cleanup). I have tomcat
configured to "restart the context" when I drop new
class files in the WEB-INF/classes directory.