Tomcat5.0 database connection pool configuration

xiaoxiao2021-03-05  31

To copy it into the SQL driver package to the Tomcat5.0 / Common / Lib directory to add as follows: SP / Server.xml:

PATH: Virtual path name

DOCBASE: actual physical address

Data Source Name: JDBC / SQLJNDI

Using SQLServer2000 database, the database name is: Bank, username and password are: admin < Resource name = "jdbc / sqljndi" auth = "container" type = "javax.sql.datasource" /> formory ORG. Apache.commons.dbcp.basicDataSourceFactory username admin

Password admin

driverclassname com.microsoft.jdbc.sqlserver.sqlserverdriver

URL JDBC: Microsoft: SQLServer: // localhost: 1433; DatabaseName = Bank

maxwait 5000

maxactive 10 maxidle 2

转载请注明原文地址:https://www.9cbs.com/read-33446.html

New Post(0)