Whoa, it was so obvious I almost feel stupid!

Thanks, Simon!

-----Mensaje original-----
De: simon colston [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 09 de julio de 2004 11:07
Para: Tomcat Users List
Asunto: Re: Garbage Collector

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/ServletCo
ntextListener.html

Cheers,

-- 
simon colston


---------------------------------------------------------------------
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