Skip to Content
author's profile photo Former Member
Former Member

When the destroy method will call

Hi

I am using WAS to deploy the servlets.

I want to describe when the servlet method will be called in the servlet.

So I have to print the messge which in the Destroy method.

In the case of Tomcat i know how to print the message.

But I want to know in the Case of WAS.

thanks

kumar

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2006 at 07:49 AM

    Hi Kumar,

    The server calls a servlet's <b>destroy()</b> method when the servlet is about to be unloaded(e.g. because a new version should be loaded or the server is shutting down). In the <b>destroy()</b> method, a servlet should free any resources it has acquired that will not be garbage collected.The <b>destroy()</b> method also gives a servlet a chance to write out its unsaved cached information or any persistent information that should be read during the next call to init().

    Regarding ur next doubt this Webdynpro VS. Java Servlet will help u.

    Regards,

    Pooja.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.