BAEL-3075 - PR reviews, removing Oracle jars, adding extra explanation/configuration to Oracle configurations

This commit is contained in:
Aitor Cuesta
2020-04-08 11:30:52 +02:00
parent b2bc2dca8f
commit 5fc5e76929
5 changed files with 53 additions and 57 deletions
@@ -22,6 +22,8 @@ public class OracleConfiguration {
dataSource.setURL("jdbc:oracle:thin:@//localhost:11521/ORCLPDB1");
dataSource.setFastConnectionFailoverEnabled(true);
dataSource.setImplicitCachingEnabled(true);
// Only with clients prior to v11.2
// dataSource.setConnectionCachingEnabled(true);
return dataSource;
}
}
@@ -21,9 +21,11 @@ public class OracleUCPConfiguration {
dataSource.setUser("books");
dataSource.setPassword("books");
dataSource.setConnectionFactoryClassName("oracle.jdbc.pool.OracleDataSource");
dataSource.setURL("jdbc:oracle:thin:@//localhost:11521/ORCLPDB1");
dataSource.setURL("jdbc:oracle:thin:@//localhost:11521/ORCLPDB1");
dataSource.setFastConnectionFailoverEnabled(true);
dataSource.setInitialPoolSize(5);
dataSource.setMinPoolSize(5);
dataSource.setMaxPoolSize(10);
return dataSource;
}