Spring-Apache Commons DBCP Pool Configuration


/ Published in: XML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
  2. <property name="driverClassName" value="#[jdbc.driverClassName]"/>
  3. <property name="url" value="#[jdbc.url]"/>
  4. <property name="username" value="#[jdbc.username]"/>
  5. <property name="password" value="#[jdbc.password]"/>
  6. <property name="maxActive" value="100"/>
  7. <property name="maxWait" value="1000"/>
  8. <property name="poolPreparedStatements" value="true"/>
  9. </bean>
  10.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.