commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Savenko (JIRA)" <>
Subject [jira] Created: (DBCP-283) Overwrite DriverManagerConnectionFactory and context.xml JNDI Resource
Date Tue, 24 Feb 2009 15:28:05 GMT
Overwrite DriverManagerConnectionFactory  and context.xml  JNDI Resource

                 Key: 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",
   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.

View raw message