Tuesday, 15 July 2014

destroy() : Called when servlet out of service

public void destroy()
Whenever the servlet is out of service, then the servlet container calls the destroy method of this servlet. This method is only called once all threads within the servlet's service method have exited or after a timeout period has passed. After the servlet container calls this method, it will not call the service method again on this servlet.

Destroy() method generally contains code to free any resources.





Prevoius                                                 Next                                                 Home

No comments:

Post a Comment