You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Lee Jun Gyun (JIRA)" <ji...@apache.org> on 2019/07/02 07:06:00 UTC
[jira] [Created] (DBCP-547) Add a ConnectionFactory interface in
BasicDataSource class
Lee Jun Gyun created DBCP-547:
---------------------------------
Summary: Add a ConnectionFactory interface in BasicDataSource class
Key: DBCP-547
URL: https://issues.apache.org/jira/browse/DBCP-547
Project: Commons DBCP
Issue Type: Improvement
Reporter: Lee Jun Gyun
[Add a ConnectionFactory interface in BasicDataSource class]
In my current project, when getting a connection in my program, I call oracleSetModule.
so, i think that after creating connection, call oracleSetModule via connectionFactoryImpl seems to be nice.
[Before]
protected ConnectionFactory createConnectionFactory() throws SQLException {
...
...
ConnectionFactory driverConnectionFactory =
new DriverConnectionFactory(driverToUse, url, connectionProperties);
return driverConnectionFactory;
}
[After]
protected ConnectionFactory createConnectionFactory() throws SQLException {
...
...
ConnectionFactory driverConnectionFactory =
getConnectionFactoryImpl().newInstance(...);
return driverConnectionFactory;
}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)