1. $TOMCAT_HOME/conf/server.xml(Tomcat4) or
$TOMCAT_HOME/conf/Catalina/host/context.xml(Tomcat5)
<Resource name="jdbc/obcon" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/obcon">
<parameter>
<name>username</name>
<value>club</value>
</parameter>
<parameter>
<name>password</name>
<value>obcl</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@172.16.1.17:1526:ORA8</value>
</parameter>
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
<parameter>
<name>removeAbandonedTimeout</name>
<value>60</value>
</parameter>
<parameter>
<name>logAbandoned</name>
<value>true</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>minIdle</name>
<value>5</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
</ResourceParams>
2. $WEB_ROOT/WEB-INF/web.xml
<resource-ref>
<res-ref-name>jdbc/obcon</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
** jdbc jar 파일이 $TOMCAT_HOME/common/lib 에 위치할 것.
[출처] [본문스크랩] [Tomcat4,5]DBCP configure|작성자 메멘토