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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
