struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Belingueres" <belingue...@gmail.com>
Subject Re: Struts 2 & Database Connection Pooling
Date Wed, 20 Aug 2008 13:36:48 GMT
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 <roger.varley@googlemail.com>:
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message