wood burning stoves 2.0*
The moose likes Servlets and the fly likes destroy() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "destroy() method" Watch "destroy() method" New topic
Author

destroy() method

Nitin Kharbade
Greenhorn

Joined: Oct 09, 2010
Posts: 25
For multiple requests for the same servlet, how the destroy() method is used?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

It isn't. The destroy() method is called by the container when the servlet is being taken out of service. It plays no part in the servicing of requests.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: destroy() method
 
Similar Threads
how to test destroy() in a servlet
WA #1.....word association
ServletException from destroy( )
when is destroy called
when destroy method will call