how to initialize database connection pool in struts 2?

2009-04-07 Thread john lee
 
in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line
 
  servlet
    servlet-nameDBInit/servlet-name
    servlet-classneuco.db.DBInitServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet
 
to initialize/launch default databse connection pool, how can i do this in 
struts 2 ?
 
 
tks in advance
 
john


  

Re: how to initialize database connection pool in struts 2?

2009-04-07 Thread Wes Wannemacher
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-nameDBInit/servlet-name
 servlet-classneuco.db.DBInitServlet/servlet-class
 load-on-startup1/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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread Sidharth Bhatia
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:sidharth.bhat...@gmail.com 


-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com] 
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-nameDBInit/servlet-name
 servlet-classneuco.db.DBInitServlet/servlet-class
 load-on-startup1/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: 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



RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread john lee
Could you tel me in detail/example?
 
tks in advance
 
john


--- On Tue, 4/7/09, Sidharth Bhatia sidharth.bhat...@gmail.com wrote:


From: Sidharth Bhatia sidharth.bhat...@gmail.com
Subject: RE: how to initialize database connection pool in struts 2?
To: 'Struts Users Mailing List' user@struts.apache.org, w...@wantii.com
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:sidharth.bhat...@gmail.com 


-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com] 
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-nameDBInit/servlet-name
         servlet-classneuco.db.DBInitServlet/servlet-class
         load-on-startup1/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: 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