My mistakes:).  Unloading a servlet is gc.  A bit different from sleep in
threads.

How about this approach?  Override the destroy() method in custom servlet so
that it doesn't notify the container that the servlet has been marked
"destroyed".  I got a bad feeling about this one though:).

-Yan

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: April 15, 2004 14:01
To: Tomcat Users List
Subject: RE: Container calling destroy() method



Hi,

>Oh even uglier, send a request to the servlet
>every
>10 minutes.  This will not guarantee that the servlet will always be
>available, i.e.,loaded, and ready for use all the time, but it will
prevent
>the destroy() method being called on the servlet.

No it won't, unless the servlet always takes 10 minutes to serve a
request.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to