You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2010/02/15 03:29:28 UTC
[jira] Closed: (DBCP-283) Overwrite DriverManagerConnectionFactory
and context.xml JNDI Resource
[ https://issues.apache.org/jira/browse/DBCP-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Steitz closed DBCP-283.
----------------------------
> Overwrite DriverManagerConnectionFactory and context.xml JNDI Resource
> ------------------------------------------------------------------------
>
> Key: DBCP-283
> URL: https://issues.apache.org/jira/browse/DBCP-283
> Project: Commons Dbcp
> Issue Type: Improvement
> Affects Versions: 1.3
> Reporter: Dmitry Savenko
>
> this code gives flexibility to overwrite DriverManagerConnectionFactory with my own implementation (MyFactory extends DriverManagerConnectionFactory ...)
> 1. GenericObjectPool connectionPool = new GenericObjectPool(null);
> 2. ConnectionFactory connectionFactory = new MyFactory ("jdbc:some:connect:string", "username", "password");
> 3. PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
> 4. PoolingDataSource dataSource = new PoolingDataSource(connectionPool);
> How configure my web app to use tomcat's connection pooling with MyFactory class?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.