今天配tomcat 的连接池时弄了一整天,原来5.0.xx和 5.5.xx的连接池配置方法是不同的.
在5.0.xx
debug="5" reloadable="true" crossContext="true">
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
factory
org.apache.commons.dbcp.BasicDataSourceFactory
maxActive
100
maxIdle
30
maxWait
10000
username
niegc
password
niegc
driverClassName
oracle.jdbc.driver.OracleDriver
URL
jdbc:oracle:thin:@niegc:1521:ora9
但在5.5.xx就是这样的哦:
debug="5" reloadable="true" crossContext="true">
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
name="jdbc/TestDB"
type="javax.sql.DataSource"
password="niegc"
driverClassName="oracle.jdbc.driver.OracleDriver"
maxIdle="2"
maxWait="5000"
username="niegc"
url="jdbc:oracle:thin:@niegc:1521:ora9"
maxActive="4"/>
如果在5.5.xx还是按5.0.xx的那种配法,会报:Cannot create JDBC driver of class '' for connect URL 'null'
2006-05-04 01:54 于北京通州
阅读(2109) | 评论(3) | 转发(0) |