tomcat6.x与tomcat5.x的数据源配置

<?xml version='1.0' encoding='utf-8'?>
<Context displayName="Sports Book Ver 2" docBase="d:/Project/SB2/web/WebRoot" path="/sb2" workDir="work\Catalina\localhost\sb2">
<!-- <Resource name="SB2DB" type="javax.sql.DataSource"/>
<ResourceParams name="SB2DB">
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@10.0.5.182:1521:wormtest</value>
</parameter>
<parameter>
<name>username</name>
<value>sb2</value>
</parameter>
<parameter>
<name>password</name>
<value>test123</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>20</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>4</value>
</parameter>
</ResourceParams>-->
<Resource
name="SB2DB"
type="javax.sql.DataSource"
password="test123"
driverClassName="oracle.jdbc.driver.OracleDriver"
maxIdle="4"
maxWait="20"
username="sb2"
url="jdbc:oracle:thin:@10.0.5.182:1521:wormtest"
maxActive="10"/>


</Context>

你可能感兴趣的:(oracle,xml,jdbc)