Hi!

I think that the container can destroy the servlet when goes down, of
course, and when a specific time has come up (a kind of garbage collector) .
This is usefull when you wanna optimize memory resources.
There are several application servers which may implement that in several
ways.

You can read about that in a good J2EE book.

Hope it�ll help you!

Greatings!


----- Original Message -----
From: "Pradeep Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 8:16 AM
Subject: destroy method


Can someone tell me, when does the web container destroys the servlet
object?

More specifically, are the servlet objects destroyed whenever the container
goes down? Or, is it that the container can destroy the object and recreate
it periodically.

According to the specification, there must be one and only one instance of a
servlet.

Thanks.
Pradeep



DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. Before opening attachments please check them for viruses and
defects. MindTree Consulting Private Limited (MindTree) will not be
responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside. If you have received this
message by mistake please notify the sender by return  e-mail and delete
this message from your system. Any unauthorized use or dissemination of this
message in whole or in part is strictly prohibited.  Please note that
e-mails are susceptible to change and MindTree shall not be liable for any
improper, untimely or incomplete transmission.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to