tomcat配置文件

\Tomcat5.0\conf\Catalina\localhost

<?xml version='1.0' encoding='utf-8'?>
<Context path="/xxx" docBase="E:\work\development\development\webapp" debug="0"
                  crossContext="true">
<Resource name="jdbc/xxx" auth="Container" type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/xxxx">
            <parameter>
            <name>factory</name>
            <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
            </parameter>
            <parameter>
            <name>driverClassName</name>
            <value>oracle.jdbc.driver.OracleDriver</value>
            </parameter>
            <parameter>
            <name>url</name>
            <value>jdbc:oracle:thin:@ip:1521:sd</value>
            </parameter>
            <parameter>
            <name>username</name>
            <value>xxxx</value>
            </parameter>
            <parameter>
            <name>password</name>
            <value>xxxx</value>
            </parameter>
            <parameter>
            <name>maxActive</name>
            <value>100</value>
            </parameter>
            <parameter>
            <name>maxIdle</name>
            <value>4</value>
            </parameter>
            <parameter>
            <name>maxWait</name>
            <value>10000</value>
            </parameter>
           <parameter>
            <name>removeAbandoned</name>
            <value>true</value>
           </parameter>
          <parameter>
            <name>removeAbandonedTimeout</name>
            <value>6</value>
          </parameter>
          <parameter>
            <name>logAbandoned</name>
            <value>true</value>
          </parameter>
         </ResourceParams>
</Context>

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