1. Configuration Instructions
Tomcat5.0
eclipse3.3+myeclipse6.0
Mysql5
mysql-connector-java-3.1.12
2. New Web Project
[1] New Project-web project-named Connectorpool
[2] Add mysql-connector-java-3.1.12 to%tomcat_home%/common/lib.
[3] Deploy the test to the project.
Entering http://127.0.0.1:8080/ConnectorPool/in the address bar will get the default index.jsp. Indicates a successful deployment.
3. Configure Tomcat Admin
Start Tomcat, Access http://127.0.0.1:8080/admin/, enter a username and password, and enter the admin interface. The username and password can be found in%tomcat _home%/conf/tomcat-users.xml.
The menu bar on the left has Tomcat Server,resources,user Definition. Note that you do not configure the data source in resource, which is the data source that configures the global.
Entering Tomcat Server->service (Catalina)->host (loalhost), you can find the project->context (/connecterpool) that you just deployed.
Then open the subtree, open Resources->data Sources, here is for a specific context of the datasource.