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 http servlet? Explain with the help of an example.
What are the new features added to servlet 2.5?
Explain the different ways for servlet authentication?
Explain servlet.
How many ways are available to ger RequestDispatcher object?
what is a session object?
Explain the custom jsp tags and the beans.
What are the advantages of cookies?
How to pass a requrest object of one servlet as a request object to another servlet?
What is the procedure of invoking different servlet in a different application?
what is the difference between ServletContext and ServletConfig
When jsessionid is created?