当前位置: 代码迷 >> J2EE >> tomcat5.5连接池解决思路
  详细解决方案

tomcat5.5连接池解决思路

热度:356   发布时间:2016-04-22 03:37:27.0
tomcat5.5连接池
tm

------解决方案--------------------
XML code
          <Resource   name="jdbc/_AppBase2"                           auth="Container" type="javax.sql.DataSource"                         factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"                      driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"                         url="jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=_AppBase2;SelectMethod=Cursor;"                         username="Public_User"   password="12345"                         maxActive="150"   maxIdle="30"   maxWait="10000"   />
------解决方案--------------------
[code=Java][/code]
<Resource name="jdbc/blog" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@ldns-train:1521:DRS"
username="drs3" password="drs3.sjns" maxActive="20" maxIdle="10"
maxWait="-1"/>