[ 
https://issues.apache.org/jira/browse/DBCP-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17619738#comment-17619738
 ] 

Kirk Hill commented on DBCP-587:
--------------------------------

Bernd,  thanks for the help.  One more question.  When I run this code

 
{code:java}
//
OracleDataSourceImpl ds = new oracle.jdbc.replay.OracleDataSourceImpl(); 
OracleDataSourceImpl ds = new oracle.jdbc.replay.OracleDataSourceImpl();
ds.setURL("jdbc:oracle:thin:@pdb_tac");
ds.setUsername("hr");
ds.setPassword("my_password");
ConnectionFactory connectionFactory = new DataSourceConnectionFactory(ds);
PoolableConnectionFactory poolableConnectionFactory = new 
PoolableConnectionFactory(connectionFactory,null);GenericObjectPoolConfig 
poolConfig = new GenericObjectPoolConfig();
poolConfig.setMaxTotal(5);
poolConfig.setMinIdle(4);ObjectPool objectPool = new 
GenericObjectPool(poolableConnectionFactory, poolConfig);
poolableConnectionFactory.setPool(objectPool);
PoolingDataSource dataSource = new PoolingDataSource(objectPool);conn = 
dataSource.getConnection();{code}
I want 5 pool connections so set it this way.  poolConfig.setMaxTotal(5);  When 
I go to check my connections in my DB I only see one.  When I use the 
BasicDataSource I can set it this way ds.setInitialSize(5) and  see the 5 
connections.  Do I not understand this properly?  Thanks. 

> DBCP and Transparent Application Continuity
> -------------------------------------------
>
>                 Key: DBCP-587
>                 URL: https://issues.apache.org/jira/browse/DBCP-587
>             Project: Commons DBCP
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: Kirk Hill
>            Priority: Major
>
> Oracle databases have a high-availability setup that uses an item called 
> Transparent Application Continuity.  It requires using the following driver 
> class name for "oracle.jdbc.replay.OracleDataSourceImpl"  When I attempt to 
> use this driver I get the following error message.  
> SQLException occurred : Cannot create JDBC driver of class 
> 'oracle.jdbc.replay.OracleDataSourceImpl' 
> Having this as a way to create connection pools would greatly enhance your 
> product.  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to