Using the application level spring container would be sufficient with init method set.
Sent from my iPhone On Jun 25, 2010, at 11:36 AM, hisameer <cool_sameer_fo...@yahoo.com> wrote: > > Hi, > > I am using Struts2.1.6+Spring2.5.6+Hibernate+JPA in my web application. The > application server is JBOSS5. I have to implement a logic so that when the > server starts I can execute some database scripts using my DAO service > layer. And this class is responsible loading some required variables from > the database. The class should execute only one on the start up. > > Please give me some suggestions how to do this. If possible write some > sample code. > > Thanks, > Sameer > -- > View this message in context: > http://old.nabble.com/How-to-modify-Struts2-start-up-process.-tp28995322p28995322.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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