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, , .