private void actualUndeployResource(com.sun.enterprise.config.serverbeans.ConnectorConnectionPool domainCcp, PoolInfo poolInfo) throws ConnectorRuntimeException { if(_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "Calling backend to delete ConnectorConnectionPool", domainCcp); } runtime.deleteConnectorConnectionPool(poolInfo); if(_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "Deleted ConnectorConnectionPool in backend", domainCcp); } /*//unregister the managed object if (QUEUE_CF.equals(defName) || TOPIC_CF.equals(defName)) { //registers the jsr77 object for the mail resource deployed final ManagementObjectManager mgr = getAppServerSwitchObject().getManagementObjectManager(); mgr.unregisterJMSResource(domainCcp.getName()); }*/ }
/** * Undeploy the resource from the server's runtime naming context * * @param resource a resource object * @throws UnsupportedOperationException Currently we are not supporting this method. */ private synchronized void actualUndeployResource(PoolInfo poolInfo) throws Exception { runtime.deleteConnectorConnectionPool(poolInfo); //performance issue related fix : IT 15784 ConnectorRegistry.getInstance().removeTransparentDynamicReconfigPool(poolInfo); if (_logger.isLoggable(Level.FINEST)) { _logger.finest("Pool Undeployed"); } }
/** * Deletes the default connector connection pools. */ protected void deleteDefaultConnectorConnectionPools() { for (ConnectionDefDescriptor aConnectionDefs_ : connectionDefs_) { String connectionDefName = aConnectionDefs_.getConnectionFactoryIntf(); String resourceJndiName = connectorRuntime_.getDefaultPoolName(moduleName_, connectionDefName); try { PoolInfo poolInfo = new PoolInfo(resourceJndiName); connectorRuntime_.deleteConnectorConnectionPool(poolInfo); } catch (ConnectorRuntimeException cre) { _logger.log(Level.WARNING, "rar.undeployment.default_pool_delete_fail", resourceJndiName); } } }
/** * Added to clean up the connector connection pool pertaining to sun-ra.xml. This is * only for 1.0 complient rars. */ private void deleteSunRAConnectionPool() { String defaultPoolName = connectorRuntime_.getDefaultPoolName( moduleName_, connectionDefs_[0].getConnectionFactoryIntf()); String sunRAPoolName = defaultPoolName + ConnectorConstants.SUN_RA_POOL; PoolInfo poolInfo = new PoolInfo(sunRAPoolName); try { connectorRuntime_.deleteConnectorConnectionPool(poolInfo); } catch (ConnectorRuntimeException cre) { _logger.log(Level.WARNING, "rar.undeployment.sun_ra_pool_delete_fail", poolInfo); } }