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



blah.blah.blah.ApplicationListener



public class ApplicationListener implements ServletContextListener  {

.

}



On 10/12/2011 02:12 AM, Resin User wrote:

There is a need for us to start few threads as soon as Resin starts up.

Can someone guide us.  We are using Resin 4.x




--

*Eric S. Kreiser* *
* Senior Software Architect


*M**z**inga**
* 5095 Ritter Road . Mechanicsburg, PA  17055
---
*Call me:* 717.458.9804
*Fax me:* 717.790.0401
*Email me:* ekrei...@mzinga.com 
*Learn more:* http://mzinga.com/v/ekreiser/
*Follow Mzinga:* http://twitter.com/mzinga
*Our Customer Experience Community:*
http://community.omnisocial.mzinga.com/app/signon/

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


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

2011-10-11 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:





-- 

   



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Starting Services at Resin Startup

2011-10-11 Thread Resin User
There is a need for us to start few threads as soon as Resin starts up.

Can someone guide us.  We are using Resin 4.x
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest