tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon colston <si...@idealnet.co.jp>
Subject Re: Garbage Collector
Date Fri, 09 Jul 2004 09:06:56 GMT
Freddy Villalba Arias wrote:
> 
> What's the best / simplest way to implement a garbage collector that
> starts running as soon as the web application (Tomcat) is up?

I think this calls for a ServletContextListener.  Start your reaper 
thread in contextInitialized and kill it in contextDestroyed.

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html

Cheers,

-- 
simon colston


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message