Skip to content

Instantly share code, notes, and snippets.

@codinko
Last active May 2, 2021 14:00
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 codinko/d55fb3cd94f653b9a4736d66d1258a14 to your computer and use it in GitHub Desktop.
Save codinko/d55fb3cd94f653b9a4736d66d1258a14 to your computer and use it in GitHub Desktop.
tomcat Server-database-connection-pool-configs.xml
<bean id="XXX" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
2
<property name="driverClassName" value="oracle.jdbc.OracleDriver"/>
3
<property name="url" value="${oracle.url}"/>
4
<property name="username" value="${oracle.user}"/>
5
<property name="password" value="${oracle.password}"/>
6
<property name="initialSize" value="10"/>
7
<property name="minIdle" value="10"/>
8
<property name="maxIdle" value="30"/>
9
<property name="maxActive" value="50"/>
10
<property name="testOnBorrow" value="true"/>
11
<property name="testOnReturn" value="true"/>
12
<property name="testWhileIdle" value="true"/>
13
<property name="validationQuery" value="SELECT 1 FROM DUAL"/>
14
<property name="connectionProperties" value="oracle.jdbc.ReadTimeout=10000"/>
15
<property name="timeBetweenEvictionRunsMillis" value="-1"/>
16
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment