Hi, use this to get the contextInitialized event: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContextListener.html
and this to share the object reference to your quarz: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#setAttribute(java.lang.String,%20java.lang.Object) http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getAttribute(java.lang.String) In your ActionBean use getContext().getServletContext() to get the reference to the servlet context. Regards, Richard On Wed, Feb 10, 2010 at 10:25 PM, Tony Dahbura <[email protected]> wrote: > Hi All, > I am new to stripes but would like to know how one configures a java > object to be instantiated prior to the first call to a stripes > application? For example I need to instantiate an object to run a > quartz timer as soon as my application is loaded by the app server. I > also need to somehow gain access to this object from my actionbeans and > they need access to the object as well. > > Thanks, > Tony > > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > -- Richard Hauswald Blog: http://tnfstacc.blogspot.com/ LinkedIn: http://www.linkedin.com/in/richardhauswald Xing: http://www.xing.com/profile/Richard_Hauswald ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
