I think the cleanest solution is to use listeners... add a
ServletContextListener inside of which you can start/do anything you need
listener
listener-classblah.blah.blah.ApplicationListener/listener-class
/listener
public class ApplicationListener implements ServletContextListener {
There is a need for us to start few threads as soon as Resin starts up.
You can use load-on-startup for a servlet that starts these threads in
its init().
In web.xml:
servlet servlet-name='app-init-servlet'
servlet-class='servlet.that.starts.YourThreads'
load-on-startup/
/servlet
--