Apache commons | pool or pool2
I was just trying to use DataSource from apache commons-dbcp.jar. To do this, I just downloaded one of my examples. So far, so good. Example: ( this )
// Here are the dbcp-specific classes.
// Note that they are only used in the setupDataSource
// method. In normal use, your classes interact
// only with the standard JDBC API
//
import org.apache.commons.pool2.ObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.dbcp2.ConnectionFactory;
import org.apache.commons.dbcp2.PoolingDataSource;
import org.apache.commons.dbcp2.PoolableConnectionFactory;
import org.apache.commons.dbcp2.DriverManagerConnectionFactory;
There is nothing wrong with that, except instead of importing from
import org.apache.commons.pool
they are imported from
import org.apache.commons.pool2
Well, it took me a few minutes to add and read the required jar before I could figure out that they were indeed importing a different package name from what they provided at the jar.
Ok, I'm still puzzled if this is just a bug or some deliberate cryptic reason (in which case I would like to know and this is the question).
Expert commentary from apache-commons?
+3
source to share
2 answers
The apache community team is working on a 2.0 release. More information can be found on the roadmap: http://wiki.apache.org/commons/PoolRoadMap .
+1
source to share