Skip to content

Instantly share code, notes, and snippets.

@kenglxn
Created September 23, 2011 13:40
Show Gist options
  • Save kenglxn/1237348 to your computer and use it in GitHub Desktop.
Save kenglxn/1237348 to your computer and use it in GitHub Desktop.
c3p0
<bean id="dataSource"
class="com.mchange.v2.c3p0.ComboPooledDataSource"
p:driverClass="${jdbc.driverClassName}"
p:jdbcUrl="${jdbc.connection.url}"
p:user="${jdbc.username}"
p:password="${jdbc.password}"
p:preferredTestQuery="${c3p0.preferredTestQuery}"
p:idleConnectionTestPeriod="${c3p0.idleConnectionTestPeriod}"
p:initialPoolSize="${c3p0.initialPoolSize}"
p:minPoolSize="${c3p0.minPoolSize}"
p:maxPoolSize="${c3p0.maxPoolSize}"
p:maxIdleTime="${c3p0.maxIdleTime}"
p:acquireRetryAttempts="${c3p0.acquireRetryAttempts}"
p:maxStatements="${c3p0.maxStatements}"
p:numHelperThreads="${c3p0.numHelperThreads}"
p:checkoutTimeout="${c3p0.checkoutTimeout}"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment