Java servlet configures the configuration of the database connection pool in the Java servlet (in Server.xml)

Source: Internet
Author: User

<ContextPath="/"DocBase=""Debug= "0">        <!--Name : Give the data source set the names; Auth: Indicates who manages the data source; Type: Represents a Type -        <Resourcename= "Zhaoyan"Auth= "Container"type= "Javax.sql.DataSource"/>        <Resourceparamsname= "Zhaoyan">        <!--Factory Setup -        <parameter>          <name>Factory</name>          <value>Org.apache.commons.dbcp.BasicDataSourceFactory</value>        </parameter>        <!--driver settings, which are placed under Tomcat's common/lib, or placed in the site's own Lib directory -        <parameter>          <name>Driverclassname</name>          <value></value>        </parameter>        <!--Set URL -        <parameter>          <name>Url</name>          <value></value>        </parameter>        <!--set the user name of the linked database -        <parameter>          <name>Username</name>          <value></value>        </parameter>        <!--set the password for the linked database -        <parameter>          <name>Password</name>          <value></value>        </parameter>        <!--maximum number of active connections in the connection pool -        <parameter>          <name>Maxactive</name>          <value>200</value>        </parameter>        <!--Maximum number of reserved (idle) connections in the connection pool -        <parameter>          <name>Maxidle</name>          <value>10</value>        </parameter>        <!--The maximum wait time for the client in the queue pool, measured in seconds -        <parameter>          <name>Maxwait</name>          <value>1</value>        </parameter>      </Resourceparams>    </Context>

Java servlet configures the configuration of the database connection pool in the Java servlet (in Server.xml)

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: info-contact@alibabacloud.com 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.