Proxool使用,通过DataSource,简单记录下,做个备份,参考了网上很多的资料,在此表示感谢。
proxool.xml
- <?xml version="1.0" encoding="gbk"?>
- <!--
- Document : proxool.xml
- Created on : 2008年12月2日, 下午1:09
- Author : zhappy
- Description:
- Purpose of the document follows.
- -->
- <something-else-entirely>
- <proxool>
- <alias>test</alias>
- <driver-url>jdbc:mysql://127.0.0.1:3306/happy</driver-url>
- <driver-class>com.mysql.jdbc.Driver</driver-class>
- <driver-properties>
- <property name="user" value="happy"/>
- <property name="password" value="happy"/>
- </driver-properties>
- <house-keeping-sleep-time>90000</house-keeping-sleep-time>
- <house-keeping-test-sql>select curdate()</house-keeping-test-sql>
- <simultaneous-build-throttle>150</simultaneous-build-throttle>
- <prototype-count>3</prototype-count>
- <maximum-connection-count>100</maximum-connection-count>
- <minimum-connection-count>3</minimum-connection-count