| Our application can embed/use link javamelody library, This enables us to gather some information about production context. About link jdbc configuration, everything works as expected when
- no pool framework is used (or default one)
- c3p0 pool is used
But using link HikariCP, neither sql requests /nor jdbc calls are logged.
Having a look at the HikariConnectionProvider and HikariConfigurationUtil classes (we are using 4.2 branches), we successfully make it work. Changes we applyied
- method HibernateConfigurationUtil#loadConfiguration(Map props)
-
HikariConfig hikariConfig = new HikariConfig(hikariProps);
if(props.containsKey(DRIVER_ONLY)) {
hikariConfig.addDataSourceProperty(DStringUtils.substringAfterLast(DRIVER_ONLY, "."), props.get(DRIVER_ONLY));
}
return hikariConfig;
where DRIVER_ONLY == hibernate.connection.driver I didn't look further why this property can not be set as the previous ones, but it only works tihs way right now. Let me know if you need any information. Thanks, Nicolas |