Re: HttpServlet Destroy Method Posted: 28 Oct 2007
The destroy() method does get correctly called. I have tried it and I know it does get called when it should.
Try to add the following method to TestServlet.java:
public void destroy() { log("TestServlet.destroy()"); }
Start and stop the Tomcat server. You will find the string "TestServlet.destroy()" in the log file localhost.2007-10-28.log (substitute the year/month/day with your local year/month/day).