Spring configures 4 data sources:
1. DBCP data source
commons-dbcp.jar, commons-pool.jar
2. C3P0 data source
c3p0-0.9.0.4.jar 3. DriverManagerDataSource
that comes with spring 4. Get jndi data source JndiObjectFactoryBean 5. druid com.alibaba.druid.pool.DruidDataSource 6. Using Tomcat 7's new connection pool - Tomcat jdbc pool Tomcat used commons-dbcp as the connection pool implementation before version 7.0, but dbcp suffered from Criticized, the reasons are: dbcp is single-threaded, in order to ensure thread safety, it will lock the entire connection pool dbcp has poor performance dbcp is too complicated, more than 60 classes of dbcp use static interfaces, there is a problem with JDK 1.6 compilation, dbcp development lags, so many people will Choose some third-party connection pool components, such as c3p0, bonecp, druid (@wenshao), etc. To this end, Tomcat has introduced a new module since 7.0: Tomcat jdbc pool tomcat jdbc pool is almost compatible with dbcp and has higher performance
Asynchronous way to obtain connection
tomcat jdbc pool is a module of tomcat, based on tomcat JULI, using Tomcat's logging framework,
using javax.sql.PooledConnection interface to obtain connection
Supporting high concurrent application environment
Super simple, only 8 core files,
better than c3p0 The idle connection handling mechanism
supports JMX and
supports XA Connection
spring configuration data source
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326785932&siteId=291194637
Recommended
Ranking