tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: destroy() is not called when Context is reloaded
Date Wed, 24 Sep 2003 12:49:57 GMT

Maybe if you post your servlet's code we can help you..

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Philipp Leusmann []
>Sent: Wednesday, September 24, 2003 7:45 AM
>Subject: destroy() is not called when Context is reloaded
>I use a servlet as a chat-server which uses a blocking doGet()-method. (I
>using the chat-server-example from the book "Java Servlet Programming").
>To make sure the context can be reloaded I included the destroy()-method in
>the servlet to remove all locks.
>The problem is, that the destroy()-method is not called (It should log a
>Is this due to the blocking doGet()? Is there a way to set a timeout when
>the destroy()-method should be called no matter the request-handling is
>or not?
>I think I waited for 10 minutes or so, but destroy() wasn´t called.
>BTW, I am using Tomcat 4.0.6 (The one integrated into Netbeans).
>Is there a way to gracefully close the servlet? As far as I can see it
>cannot be done in the ContextListener since the servlets are closed before
>the ContextListener is called.
>Would be great if someone could help me.
> Philipp
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

View raw message