> From: Gabriele Bulfon [mailto:gbul...@sonicle.com] 
> Subject: Deployment over a running webapp does not call session detroyed?

> the ContextListener contextDestroyed is called, but I have no way to
> access my threads and kill them from there....

> Is this a bug or am I missing something?

Yes, it's a bug - yours.  By design, sessions are maintained across a webapp 
redeployment.  You'll need to make your code smarter about tracking auxiliary 
threads that you start and that Tomcat is completely unaware of.  For example, 
you could save the threads in some sort of list or array accessible to your 
context listener, and have it take care of shutting down your threads.

 - 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to