Re: Keep Servlet Alive Indefinitely?

2001-02-09 Thread romain



On Thu, 8 Feb 2001, schalk wrote:

 Greetings:
 
How can I keep my JDBC pool servlet alive, even if it hasn't been 
 used all day.  It keeps being destroyed, and I suspect Tomcat 3.2.1 is 
 "garbage collecting" it.  If so, how can I stop Tomcat from destroying 
 my servlet.
 
Just create some object that isn't going to be garbage collected and let
that object have a reference to the servlet: the ObjectPreserver
pattern. 


have fun,

Sloot.



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




RE: Keep Servlet Alive Indefinitely?

2001-02-08 Thread Randy Layman


I don't know of a way to make the servlet not be unloaded, however
one work-around would be for your servlet to create a thread and then every
so often make a request of itself.

Randy

-Original Message-
From: schalk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 11:07 AM
To: [EMAIL PROTECTED]
Subject: Keep Servlet Alive Indefinitely?


Greetings:

   How can I keep my JDBC pool servlet alive, even if it hasn't been 
used all day.  It keeps being destroyed, and I suspect Tomcat 3.2.1 is 
"garbage collecting" it.  If so, how can I stop Tomcat from destroying 
my servlet.

  --  David


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

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




RE: Keep Servlet Alive Indefinitely?

2001-02-08 Thread Stefan Langer

Use a seperate thread that is running indefinetly, that should keep your servlet 
alive.

Stefan