You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Collin Peters <cp...@intouchtechnology.com> on 2007/02/19 02:52:09 UTC
Share database connection pool with Tomcat
I have some regular Tomcat database connection pooling setup with DBCP
for some servlets that are not iBatis related (reports running direct
SQL).
Is it possible to share that database pool with the one defined in
iBatis? Seems counter-productive to define two database pools. Or
maybe iBatis/Tomcat is smart enough to only have one pool?
--
Collin Peters
VP of Technology
InTouch Technology
Re: Share database connection pool with Tomcat
Posted by Larry Meadors <lm...@apache.org>.
Of course - if it's a JNDI data source you can tell iBATIS to use that
- it's in the user guide and the book.
Larry
On 2/18/07, Collin Peters <cp...@intouchtechnology.com> wrote:
> I have some regular Tomcat database connection pooling setup with DBCP
> for some servlets that are not iBatis related (reports running direct
> SQL).
>
> Is it possible to share that database pool with the one defined in
> iBatis? Seems counter-productive to define two database pools. Or
> maybe iBatis/Tomcat is smart enough to only have one pool?
>
> --
> Collin Peters
> VP of Technology
> InTouch Technology
>