spring connection pool configuration

Solutions on MaxInterview for spring connection pool configuration by the best coders in the world

showing results for - "spring connection pool configuration"
Delbert
29 Feb 2016
1<bean id="hikariConfig" class="com.zaxxer.hikari.HikariConfig">
2  <property name="maximumPoolSize" value="10" />
3  <property name="minimumPoolSize" value="2" />
4  <property name="dataSourceClassName" 
5            value="oracle.jdbc.pool.OracleDataSource" />
6  <property name="dataSourceProperties" ref="props" />
7  <property name="poolName" value="springHikariCP" />
8</bean>
9
10<bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource">
11      <constructor-arg ref="hikariConfig" />
12</bean>
13
14<util:properties id="props" location="classpath:datasource.properties"/>