IDEMPIERE-5013 Implement HikariCP as a replacement for c3p0 (#1486)

This commit is contained in:
Carlos Ruiz 2022-09-14 04:21:47 +02:00 committed by GitHub
parent 52e5e17fed
commit ac36849415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -731,7 +731,8 @@ public class DB_Oracle implements AdempiereDatabase
poolProperties.put("password", connection.getDbPwd()); poolProperties.put("password", connection.getDbPwd());
} }
HikariConfig hikariConfig = new HikariConfig(poolProperties); HikariConfig hikariConfig = new HikariConfig(poolProperties);
hikariConfig.setDriverClassName(DRIVER);
m_ds = new HikariDataSource(hikariConfig); m_ds = new HikariDataSource(hikariConfig);
m_connectionURL = m_ds.getJdbcUrl(); m_connectionURL = m_ds.getJdbcUrl();

View File

@ -756,8 +756,9 @@ public class DB_PostgreSQL implements AdempiereDatabase
if (!poolProperties.contains("password")) { if (!poolProperties.contains("password")) {
poolProperties.put("password", connection.getDbPwd()); poolProperties.put("password", connection.getDbPwd());
} }
HikariConfig hikariConfig = new HikariConfig(poolProperties); HikariConfig hikariConfig = new HikariConfig(poolProperties);
hikariConfig.setDriverClassName(DRIVER);
m_ds = new HikariDataSource(hikariConfig); m_ds = new HikariDataSource(hikariConfig);
m_connectionURL = m_ds.getJdbcUrl(); m_connectionURL = m_ds.getJdbcUrl();