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
JavaRanch » Java Forums » Java » Servlets
Bookmark "destroy() method" Watch "destroy() method" New topic

destroy() method

Nitin Kharbade

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

Joined: Jan 10, 2002
Posts: 63866

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: destroy() method
It's not a secret anymore!