Graphical Tomcat5.0 configuration database connection pool

Source: Internet
Author: User
Tags user definition tomcat tomcat server

1. Configuration Instructions





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 the address bar will get the default index.jsp. Indicates a successful deployment.

3. Configure Tomcat Admin

Start Tomcat, Access, 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.