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 Servlet Context?
How can you start a jta transaction from a servlet deployed on jboss?
Whether thread can be used in servlets?
What is cgi and what are its drawbacks?
Can we use servlets in JavaScript?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
How can we perform any action at the time of deploying the project?
What are the exceptions thrown by servlets? Why?
How to pass a requrest object of one servlet as a request object to another servlet?
Can we call destroy() method inside the init() method? What happens when we do so?
Explain load on start-up and its importance?
why are using HttpServlet in realtime projects and why are not using Genericservlet