Skip to content

Instantly share code, notes, and snippets.

@jeevan-patil
Created July 29, 2017 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeevan-patil/8d7adad9b4db47d40780658074aa7005 to your computer and use it in GitHub Desktop.
Save jeevan-patil/8d7adad9b4db47d40780658074aa7005 to your computer and use it in GitHub Desktop.
c3p0 connection pool configuration
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
<property name="driverClass" value="${jdbc.driverClassName}"/>
<property name="jdbcUrl" value="${jdbc.url}"/>
<property name="user" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
<property name="minPoolSize" value="10"/>
<property name="maxPoolSize" value="50"/>
<property name="acquireIncrement" value="1"/>
<property name="idleConnectionTestPeriod" value="1000"/>
<property name="maxStatements" value="250"/>
<property name="checkoutTimeout" value="60000"/>
<property name="initialPoolSize" value="10" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment