Struts 2 Database Connection Pooling

2008-08-20 Thread Roger
I need to implement a database connection pool and was considering using the 
JNDI facilities provided by the servlet container (in my case, Apache 
Tomcat). Is there a Struts pattern for accessing JNDI resources in (a) a 
container neutral manner and (b) without tying my action classes to the 
servlet api or would I be better off creating an independant connection pool 
and injecting it through Spring?

Regards

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 Database Connection Pooling

2008-08-20 Thread Gabriel Belingueres
AFAIK, there is no pattern.

You can configure a datasource through Spring, or you could get it
from JNDI once when your app starts (by writing a
ServletContextListener)

2008/8/20, Roger [EMAIL PROTECTED]:
 I need to implement a database connection pool and was considering using the
 JNDI facilities provided by the servlet container (in my case, Apache
 Tomcat). Is there a Struts pattern for accessing JNDI resources in (a) a
 container neutral manner and (b) without tying my action classes to the
 servlet api or would I be better off creating an independant connection pool
 and injecting it through Spring?

 Regards

 -
 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]