even if the service-method is still "running"? Maybe I´ll have to try another tomcat-version...
> -----Ursprüngliche Nachricht----- > Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 24. September 2003 15:47 > An: Tomcat Users List > Betreff: RE: destroy() is not called when Context is reloaded > > > > Howdy, > Then I don't know why destroy() is not being called. I certainly > can't reproduce it, as I have many servlet in many webapps whose > destroy method properly gets called on context reload, in both > tomcat 4.1.x and 5.0.x. Sorry... > > Yoav Shapira > Millennium ChemInformatics > > > >-----Original Message----- > >From: Philipp Leusmann [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, September 24, 2003 9:46 AM > >To: Tomcat Users List > >Subject: AW: destroy() is not called when Context is reloaded > > > >yes > >http://www.servlets.com/cos/javadoc/com/oreilly/servlet/RemoteDae > monHttpSer > >v > >let.html > > > >> -----Ursprüngliche Nachricht----- > >> Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] > >> Gesendet: Mittwoch, 24. September 2003 15:34 > >> An: Tomcat Users List > >> Betreff: RE: destroy() is not called when Context is reloaded > >> > >> > >> > >> Howdy, > >> Does RemoteDaemonHttpServlet extend HttpServlet? > >> > >> Yoav Shapira > >> Millennium ChemInformatics > >> > >> > >> >-----Original Message----- > >> >From: Philipp Leusmann [mailto:[EMAIL PROTECTED] > >> >Sent: Wednesday, September 24, 2003 9:29 AM > >> >To: Tomcat Users List > >> >Subject: AW: destroy() is not called when Context is reloaded > >> > > >> >You can find the source here: > >> >http://www.servlets.com/jservlet/examples/ch10/ChatServlet.java > >> >The only thing I added is: > >> > > >> >public void destroy() > >> >{ > >> > log("This servlet should be closed"); > >> >} > >> > > >> >And I replaced one or two deprecated method-calls as > described in sun's > >> >javadocs. These replacements shouldn´t hurt, I think. > >> > > >> >thanks, > >> > Philipp > >> > > >> >> -----Ursprüngliche Nachricht----- > >> >> Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] > >> >> Gesendet: Mittwoch, 24. September 2003 14:50 > >> >> An: Tomcat Users List > >> >> Betreff: RE: destroy() is not called when Context is reloaded > >> >> > >> >> > >> >> > >> >> Howdy, > >> >> Maybe if you post your servlet's code we can help you.. > >> >> > >> >> Yoav Shapira > >> >> Millennium ChemInformatics > >> >> > >> >> > >> >> >-----Original Message----- > >> >> >From: Philipp Leusmann > [mailto:[EMAIL PROTECTED] > >> >> >Sent: Wednesday, September 24, 2003 7:45 AM > >> >> >To: [EMAIL PROTECTED] > >> >> >Subject: destroy() is not called when Context is reloaded > >> >> > > >> >> >Hi, > >> >> > > >> >> >I use a servlet as a chat-server which uses a blocking doGet()- > >method. > >> >(I > >> >> >am > >> >> >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 > >> >> >message). > >> >> >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 > >> >> >done > >> >> >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. > >> >> > > >> >> >thanks, > >> >> > Philipp > >> >> > > >> >> > > >> >> > > >> >> > >--------------------------------------------------------------------- > >> >> >To unsubscribe, e-mail: [EMAIL PROTECTED] > >> >> >For additional commands, e-mail: > [EMAIL PROTECTED] > >> >> > >> >> > >> >> > >> >> > >> >> 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. > >> >> > >> >> > >> >> > --------------------------------------------------------------------- > >> >> 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] > >> > >> > >> > >> > >> 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. > >> > >> > >> --------------------------------------------------------------------- > >> 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] > > > > > 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. > > > --------------------------------------------------------------------- > 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]