// required by dbcp
PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(
connectionFactory, connectionPool, keyedObject, null, false, true);
Class.forName("org.apache.commons.dbcp.PoolingDriver");
PoolingDriver driver = (PoolingDriver) DriverManager.getDriver("jdbc:apache:commons:dbcp:");
driver.registerPool(contextName + "_" + name, connectionPool);
if (this.defaultPoolName == null || this.defaultPoolName.equals("")) {
this.defaultPoolName = name;
this.bbdd = dbServer;
this.rdbms = rdbms;