Skip to content

Instantly share code, notes, and snippets.

@jeevan-patil
Created July 29, 2017 08:37
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/9f786f8d4946dad04b0b7f2ffa1cb357 to your computer and use it in GitHub Desktop.
Save jeevan-patil/9f786f8d4946dad04b0b7f2ffa1cb357 to your computer and use it in GitHub Desktop.
Tomcat JDBC connection pool configurations
<bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource" destroy-method="close">
<property name="driverClassName" value="${jdbc.driverClassName}" />
<property name="url" value="${jdbc.url}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
<property name="initialSize" value="10"/>
<property name="maxActive" value="50"/>
<property name="maxIdle" value="10" />
<property name="maxWait" value="100"/>
<property name="name" value="Tomcat Connection Pool" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment