Advertisement
sombriks

ultimate tomcat datasource

Jan 6th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
  2. <Context>
  3.     <Resource name="jdbc/myamazing-ds" auth="Container"
  4.         factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" type="javax.sql.DataSource"
  5.         maxActive="100" maxIdle="30" maxWait="5000" username="root" password="amazing"
  6.         testWhileIdle="true" testOnBorrow="true" testOnReturn="false"
  7.         validationQuery="SELECT 1" validationInterval="30000"
  8.         timeBetweenEvictionRunsMillis="30000" minIdle="10" initialSize="10"
  9.         removeAbandonedTimeout="60" removeAbandoned="true" logAbandoned="true"
  10.         minEvictableIdleTimeMillis="30000" driverClassName="com.mysql.jdbc.Driver"
  11.         url="jdbc:mysql://localhost:3306/myamazingdb" />
  12. </Context>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement