Commit 1445f7a7 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

switch to BoneCP connection pool

parent 6324659d
......@@ -13,12 +13,20 @@
</property>
</bean>
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
<bean id="dataSource" class="com.jolbox.bonecp.BoneCPDataSource"
destroy-method="close">
<property name="user" value="${chimera.db.user}"/>
<property name="password" value="${chimera.db.password}"/>
<property name="driverClass" value="${chimera.db.driver}"/>
<property name="jdbcUrl" value="${chimera.db.url}"/>
<property name="username" value="${chimera.db.user}"/>
<property name="password" value="${chimera.db.password}"/>
<property name="idleConnectionTestPeriodInMinutes" value="60"/>
<property name="idleMaxAgeInMinutes" value="240"/>
<property name="maxConnectionsPerPartition" value="30"/>
<property name="minConnectionsPerPartition" value="10"/>
<property name="partitionCount" value="3"/>
<property name="acquireIncrement" value="5"/>
<property name="statementsCacheSize" value="100"/>
<property name="releaseHelperThreads" value="3"/>
</bean>
<!--
......
......@@ -207,9 +207,9 @@
<version>1.9.19</version>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
<groupId>com.jolbox</groupId>
<artifactId>bonecp</artifactId>
<version>0.7.1.RELEASE</version>
</dependency>
<dependency>
<groupId>jline</groupId>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment