IDEMPIERE-5013 Implement HikariCP as a replacement for c3p0 (#1486)
This commit is contained in:
parent
52e5e17fed
commit
ac36849415
|
@ -731,7 +731,8 @@ public class DB_Oracle implements AdempiereDatabase
|
|||
poolProperties.put("password", connection.getDbPwd());
|
||||
}
|
||||
|
||||
HikariConfig hikariConfig = new HikariConfig(poolProperties);
|
||||
HikariConfig hikariConfig = new HikariConfig(poolProperties);
|
||||
hikariConfig.setDriverClassName(DRIVER);
|
||||
m_ds = new HikariDataSource(hikariConfig);
|
||||
|
||||
m_connectionURL = m_ds.getJdbcUrl();
|
||||
|
|
|
@ -756,8 +756,9 @@ public class DB_PostgreSQL implements AdempiereDatabase
|
|||
if (!poolProperties.contains("password")) {
|
||||
poolProperties.put("password", connection.getDbPwd());
|
||||
}
|
||||
|
||||
HikariConfig hikariConfig = new HikariConfig(poolProperties);
|
||||
|
||||
HikariConfig hikariConfig = new HikariConfig(poolProperties);
|
||||
hikariConfig.setDriverClassName(DRIVER);
|
||||
m_ds = new HikariDataSource(hikariConfig);
|
||||
|
||||
m_connectionURL = m_ds.getJdbcUrl();
|
||||
|
|
Loading…
Reference in New Issue