MyException - 我的异常网
当前位置:我的异常网» 数据库 » oracle数据库-运用proxool进行中断重连

oracle数据库-运用proxool进行中断重连

www.MyException.Cn  网友分享于:2013-02-20  浏览:35次
oracle数据库-使用proxool进行中断重连
 (1)proxool.xml配置项参数
<?xml version="1.0" encoding="UTF-8"?>
<something-else-entirely>
        <proxool>
                <alias>webDB</alias>
                <driver-url>jdbc:oracle:thin:@127.0.0.1:1521:web</driver-url>
                <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                <driver-properties>
                        <property name="user" value="web"/>
                        <property name="password" value="123"/>
                        <property name="autoReconnect" value="true" />
                </driver-properties>
                <maximum-active-time>120000</maximum-active-time>
                <maximum-connection-count>10</maximum-connection-count>
                <minimum-connection-count>2</minimum-connection-count>
                <house-keeping-sleep-time>120000</house-keeping-sleep-time>
                <simultaneous-build-throttle>10</simultaneous-build-throttle>
                <prototype-count>5</prototype-count>
                <test-before-use>true</test-before-use>
                <house-keeping-sleep-time>60000</house-keeping-sleep-time> 
                <house-keeping-test-sql>select sysdate from dual</house-keeping-test-sql>
        </proxool>
</something-else-entirely>

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有