tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <rom...@zzict.nl>
Subject Re: Keep Servlet Alive Indefinitely?
Date Fri, 09 Feb 2001 10:35:35 GMT


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.



Mime
View raw message