Tomcat DBCP塘崔圭隈
扮寂:2011-01-16 BlogJava Scorpio Zhen
云猟參tomcat5.0才informix方象垂葎箭?初府tomcat 汽倖JNDI方象坿才謹方象坿議塘崔。
匯、Tomcat塘崔匯倖jndi方象坿圭隈
及匯化?壓C:"Tomcat 5.0"conf"server.xml嶄<Host>….</Host>嶄奐紗泌和坪否?廣吭?<DefaultContext>奉噐<Host>和議匯雫圷殆。
<DefaultContext>
<Resource name = "jdbc/testdb0_cs" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/testdb0_cs">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.informix.jdbc.IfxDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:informix-sqli://192.177.191.130:6666/testdb0_cs:INFORMIXSERVER=ccbhr_test</value>
</parameter>
<parameter>
<name>username</name>
<value>hrmis</value>
</parameter>
<parameter>
<name>password</name>
<value>hrmis</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
|