Skip to content

Commit

Permalink
c3p0 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Feb 28, 2018
1 parent b1b5092 commit bbe268e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-system/pom.xml
Expand Up @@ -259,7 +259,7 @@
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.2.1</version>
<version>0.9.5.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down
Expand Up @@ -84,6 +84,9 @@ private DataSource createC3P0DataSource() throws PropertyVetoException {
ds.setMinPoolSize(configuration.getMinPoolSize());
ds.setMaxPoolSize(configuration.getMaxPoolSize());
ds.setIdleConnectionTestPeriod(1800);
if (configuration.getMaxPoolSize() > 30) {
ds.setNumHelperThreads(10);
}
ds.setConnectionTesterClassName(MidPointConnectionTester.class.getName());
ds.setConnectionCustomizerClassName(MidPointConnectionCustomizer.class.getName());

Expand Down

0 comments on commit bbe268e

Please sign in to comment.