public void createEmptyConnectionPool(PoolInfo poolInfo, PoolType pt, Hashtable env) throws PoolingException { //Create and initialise the connection pool createAndInitPool(poolInfo, pt, env); if (listener != null) { try { listener.poolCreated(poolInfo); } catch (Exception ex) { if(_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "Exception thrown on pool listener"); } } } //notify mcf-create ManagedConnectionFactory mcf = ConnectorRegistry.getInstance().getManagedConnectionFactory(poolInfo); if(mcf != null){ if(mcf instanceof MCFLifecycleListener){ ((MCFLifecycleListener)mcf).mcfCreated(); } } }
/** * Kill the pool with the specified pool name * * @param poolInfo - The name of the pool to kill */ public void killPool(PoolInfo poolInfo) { //empty the pool //and remove from poolTable ResourcePool pool = poolTable.get(poolInfo); if (pool != null) { pool.cancelResizerTask(); pool.emptyPool(); if (_logger.isLoggable(Level.FINE)) { _logger.fine("Removing pool " + pool + " from pooltable"); } synchronized (poolTable) { poolTable.remove(poolInfo); } if (listener != null){ listener.poolDestroyed(poolInfo); } //notify mcf-destroy ManagedConnectionFactory mcf = ConnectorRegistry.getInstance().getManagedConnectionFactory(poolInfo); if(mcf != null){ if(mcf instanceof MCFLifecycleListener){ ((MCFLifecycleListener)mcf).mcfDestroyed(); } } } }
connectorRegistry.getManagedConnectionFactory(poolInfo); userPassword[0] = ConnectionPoolObjectsUtils.getValueFromMCF( "UserName", poolInfo, mcf);
try { if (_registry.isMCFCreated(poolInfo)) { return _registry.getManagedConnectionFactory(poolInfo); } else {
ManagedConnectionFactory mcf = registry.getManagedConnectionFactory( poolInfo); SetMethodAction sma = new SetMethodAction(mcf,