MysqlConnectionPoolDataSource or c3p0 as a library?

What is the difference between the MysqlConnectionPoolDataSource and C3p0, BoneCP or dbcp libraries for pooling? I do not understand why to use the library if the mysql connector provides pooling.

+5
source share
1 answer

A is ConnectionPoolDataSource not a connection pool (or at least should not be), it should be used DataSourcethat provides a pool (for example, from a server application). A ConnectionPoolDataSourceprovides physical connections that will be stored in the connection pool. Apart from creating these physical compounds, ConnectionPoolDataSourceshould not do anything else.

, , , DataSource . , , , BoneCP, c3p0 Apache DBCP. MySQL DataSource, , .

+3

All Articles