Data Connection Pool

Source: Internet
Author: User

Jndi:java naming directory Interface (Java naming and Directory interface)
is a set of APIs that access naming and directory services in Java applications
Connect a resource to a service by name
Name: Specify the names of the resourced Jdai
Auth: Specify manager for Management resource (Container: Container creation and management application: Created and managed by web App)
Type: Specifies the Java class to which resource belongs
Driverclassname: The specified database driver
Username: User name to connect to the database
URL: Server address
Password: Password to connect to the database
AutoReConnect: Whether the connection is automatic when the database connection is abnormal
Autoreconnectforpools: Whether to use a reconnection policy for the database connection pool
Maxactive: The maximum number of active connections provided in the connection pool at the agreed time
Maxidle: The maximum number of database connections in which the connection pool is idle
Maxwait: The maximum number of milliseconds to wait when there is no connection in the connection pool

Specific operation:

Add under Apache-tomcat-6.0.33\conf\context.xml

<resource
Name= "Jdbc/userinfo"
Auth= "Container"
Type= "Javax.sql.DataSource"
Url= "Jdbc:oracle:thin: @localhost: 1521:orcl"
Driverclassname= "Oracle.jdbc.driver.OracleDriver"
Username= "Scott"
Password= "a"
Autoreconnect= "true"
Autoreconnectforpools= "true"
Maxactive= "100"
Maxidle= "50"
maxwait= "3000"
/>

Data Connection Pool

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.