In which cases Destroy() is invoked?
Answers were Sorted based on User's Feedback
Answer / n.l.narayana
destroy() method is invoked automatically when ever the
servlet object is removed from the webcontainer
(Tomcat,weblogic,....)
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / shakir khan
When server wants to remove the servlet from pool,it will
execute the destroy().
destroy() is invoked,when servlet is unloaded from
memory.This is a good place to clean up any resources(Such
as open files or database connections).
| Is This Answer Correct ? | 1 Yes | 0 No |
What is webservlet?
What do you mean by deployment descriptor?
What is a server side include (ssi)
Differentiate between the web server and application server?
What compiler do not do if we create our own constructor?
What are the servlet events?
when you comppile the servlet is it neccesary to restaet the tomcat server?
describe all about advanced java with presentation
What is difference between cookies and httpsession?
Which event is fired at the time of setting, getting or removing attribute from application scope?
What are some disadvantages of storing session state in cookies?
What do you mean by the servlet chaining?