Re: [Resin-interest] Starting Services at Resin Startup

2011-10-13 Thread Eric Kreiser
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 {

Re: [Resin-interest] Starting Services at Resin Startup

2011-10-12 Thread Mattias Jiderhamn
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 --