橙子不夏天

学习,记录

导航

tomcat oracle 连接池配置

Posted on 2014-08-05 14:19  橙子不夏天  阅读(221)  评论(0编辑  收藏  举报
<?xml version='1.0' encoding='utf-8'?>
<Context displayName="zcgl" docBase="C:\tjzc\tongji" path="/zcgl" reloadable="true" privileged="true">
<Resource auth="Container" description="Oracle Datasource example" name="jdbc/zcdata" type="javax.sql.DataSource"/>
<Resource name="jdbc/zcdata" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/zcdata">
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>200</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@192.168.250.63:1521:orcl</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>username</name>
<value>zcgl</value>
</parameter>
<parameter>
<name>password</name>
<value>zcgl</value>
</parameter>
</ResourceParams>
</Context>