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 name> ORG. Apache.commons.dbcp.basicDataSourceFactory value> parameter> username name> admin value> parameter>
Password name> admin value> parameter>
driverclassname name> com.microsoft.jdbc.sqlserver.sqlserverdriver value> parameter>
URL name> JDBC: Microsoft: SQLServer: // localhost: 1433; DatabaseName = Bank value> parameter>
maxwait name> 5000 value> parameter>
maxactive name> 10 value> parameter> maxidle name> 2 value> parameter> resourceparams>
Context>