If u have used spring in ur application then u can use the init-method. Here is how it works
You can configure your war to load the spring upon app start-up. The init method will auomatically get invoked. Sent from my iPhone On Jun 23, 2010, at 11:03 AM, Oscar <oscar.kalde...@gmail.com> wrote: > Hi to all, i have the next situation: I need to call an action on > application startup like you can call a servlet on application startup > by setting <load-on-startup> parameter servlet on web.xml . I can't > use a servlet because i need to trigger my interceptors that > initialize JPA EntityManager . Is there a way to achieve this? > > Best regards. > > -- > Oscar Calderón > SCJP 6 > http://www.javahowto.net/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org