Forums Register Login

destroy() method

+Pie Number of slices to send: Send
Isn't it mandatory for the servlet engines/app.servers to call this method when they are shut down? I am testing the servlets with Resin 2.0.5 and Tomcat 3.3.1. My Servlet has a log statement in the destroy() method which never gets written to the log file (I see all the other log statements), which makes me believe that this method is not being called. So, is this method only called when the servlet is 'unloaded'? If yes, how will the servlets be able to clean up after themselves in case the app.server shuts down?
-Bala.
+Pie Number of slices to send: Send
How are you telling the server to shut down? Are you using the Shutdown script provided?
Bill
Get me the mayor's office! I need to tell him about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 733 times.
Similar Threads
destroy() for Servlet
Servlet's constructor
When is destroy of servlets exaclty called
Servlet
when is destroy called
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:15:20.