| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How to use Jakarta's DBCP for connection poolingIntroduction Intended audience Steps Configuration References IntroductionThis HOW-TO provide users with instructions on hot to configure Castor JDO so that Apache Jakarta's DBCP package is used as a connection pool. Intended audienceAnyone who wants to use DBCP as connection pool mechanism with Castor JDO. StepsBelow are defined the steps to configure Castor JDO to use DBCP's BasicDataSource for connection pooling. ConfigurationTo use a DBCP BasicDataSource with Castor JDO, please provide the following <data-source> entry in the jdo-conf.xml file.
Above example makes use of the mySQL JDBC driver to establish a connection pool to a mySQL instance named 'test' running on the same machine as Castor itself. The pool initially holds 10 connections, but is configured to allow a maximum of 40 active connections at the same time. References
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||