xurror commented on a change in pull request #722: Fineract-796 - Use Hikari
instead of Tomcat Connection Pool
URL: https://github.com/apache/fineract/pull/722#discussion_r392653210
##########
File path:
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/boot/db/DataSourceConfiguration.java
##########
@@ -38,19 +39,19 @@
@Autowired JDBCDriverConfig config ;
@Bean
- public DataSourceProperties dataSourceProperties() {
- return new DataSourceProperties(config.getDriverClassName(),
config.getProtocol(), config.getSubProtocol(), config.getPort());
+ public DataSourceProperties DataSourceProperties() {
+ return new DataSourceProperties(config.getDriverClassName(),
config.getProtocol(), config.getSubProtocol(), config.getPort());
}
@Bean
- public DataSource tenantDataSourceJndi() {
- PoolConfiguration p = getProperties();
- org.apache.tomcat.jdbc.pool.DataSource ds = new
org.apache.tomcat.jdbc.pool.DataSource(p);
- logger.info("Created new DataSource; url=" + p.getUrl());
+ public DataSource hikariTenantDataSource() {
Review comment:
I would check that out.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services