Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are maven coordinates of Tomcat JDBC Connection Pool?

What are Maven coordinates of Tomcat JDBC Connection Pool?

like image 320
yegor256 Avatar asked Mar 06 '11 17:03

yegor256


People also ask

How does Tomcat jdbc connection pool work?

Tomcat jdbc pool implements the ability retrieve a connection asynchronously, without adding additional threads to the library itself. Tomcat jdbc pool is a Tomcat module, it depends on Tomcat JULI, a simplified logging framework used in Tomcat. Retrieve the underlying connection using the javax. sql.

Where do you configure a database connection pool in a Tomcat server?

For configuring the connection pool for SQLServer you need to configure the SQLServer drivers as explained in the Microsoft SQL Server section and put the jar file into the TOMCAT_HOME/lib folder. Note that database name, username and password must be defined directly in the URL.

Which of the following directory of Apache Tomcat is used for connection pools?

This file is located in apache-tomcat/conf directory. The scope of server context. xml file is application, so if you define a DataSource connection pool of 100 connections and there are 20 applications then the datasource will be created for each of the application.


1 Answers

The selected answer appears to be erroneous as it refers to spring rather than the artifact the quesitoner is looking for. It can be found here:

<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-jdbc</artifactId>
    <version>7.0.21</version>
</dependency>

Version 7.0.19 and 7.0.20 are also available.

like image 75
Lucas Avatar answered Nov 12 '22 05:11

Lucas