...
For Tomcat 6.x and Tomcat 7.x, edit
<tomcat-install>/conf/context.xml
.
If you are running Tomcat 5.5 you edit<tomcat-install>/conf/server.xml
.Within the
Context
tags, insert the DataSourceResource
tag:<Resource name="jdbc/TermWebDS"
auth="Container"
type="javax.sql.DataSource"
username="termwebuser"
password="termwebpassword"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/termweb?autoReconnect=true&
useUnicode=true&characterEncoding=utf8"
maxActive="20"
maxIdle="10"
validationQuery="Select 1"/>- Replace the username and password parameters with the correct values for your database.
- In the url parameter, replace the word 'termweb' with the name of the database your TermWeb data will be stored in.
...