Could you tel me in detail/example? tks in advance john
--- On Tue, 4/7/09, Sidharth Bhatia <[email protected]> wrote: From: Sidharth Bhatia <[email protected]> Subject: RE: how to initialize database connection pool in struts 2? To: "'Struts Users Mailing List'" <[email protected]>, [email protected] Date: Tuesday, April 7, 2009, 11:06 PM You can also use struts 2 spring capability and have the connection given to you through dependency injection. Sid Bhatia "Try not. Do... or do not. There is no try" -- Yoda _________________________ _ mailto:[email protected] -----Original Message----- From: Wes Wannemacher [mailto:[email protected]] Sent: Tuesday, April 07, 2009 11:29 PM To: Struts Users Mailing List Subject: Re: how to initialize database connection pool in struts 2? On Tuesday 07 April 2009 21:38:44 john lee wrote: > in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line > > <servlet> > <servlet-name>DBInit</servlet-name> > <servlet-class>neuco.db.DBInitServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > > to initialize/launch default databse connection pool, how can i do this in > struts 2 ? > > tks in advance > > john Same way would work... -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

