Skip to content
Permalink
Browse files

Improved: Do not use deprecated method in ‘DBCPConnectionFactory’

(OFBIZ-10935)

Use ‘PoolableConnectionFactory#setAutoCommitOnReturn’ instead of
‘PoolableConnectionFactory#setEnableAutoCommitOnReturn’ from
‘org.apache.commons.dbcp2’ package.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857898 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Apr 21, 2019
1 parent acff8da commit 9f5802e49ae6b5dd239fb9950d6ee9d8d834b09a
@@ -111,7 +111,7 @@ public Connection getConnection(GenericHelperInfo helperInfo, JdbcElement abstra
factory.setValidationQuery(jdbcElement.getPoolJdbcTestStmt());
factory.setDefaultReadOnly(false);
factory.setRollbackOnReturn(false);
factory.setEnableAutoCommitOnReturn(false);
factory.setAutoCommitOnReturn(false);
String transIso = jdbcElement.getIsolationLevel();
if (!transIso.isEmpty()) {
if ("Serializable".equals(transIso)) {

0 comments on commit 9f5802e

Please sign in to comment.
You can’t perform that action at this time.