Hi

You wrote, that when an application is unloaded, that tomcat discards all
references to the classes of that web application, therefore the garbage
collector could effectively "unload" that application.

However, there are web applications that have own threads (file reaper,
connection pool, etc.).

That means that there is no real way to safely unload a web application.

I am thinking about a strategy to iterate over all running threads and
interrupt (and if absolutely necessary stop) all threads started by a
certain classloader (not sure if it is possible, but I suspect so - might
require instrumention though.)

Regards,
  Steffen



-----Ursprüngliche Nachricht-----
Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Gesendet: Sonntag, 28. März 2010 16:39
An: Tomcat Users List
Betreff: RE: Shutdown hook for correctly unloading drivers

> From: Steffen Heil [mailto:li...@steffen-heil.de]
> Subject: AW: Shutdown hook for correctly unloading drivers
> 
> This does not hold, as soon as Threads are involved, right?

I don't understand your comment; Thread objects always exist, and what do
you think that has to do with unloading classes?

 - 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to