/** * uninitializes the resource adapter. It also destroys the default pools * and resources */ public void destroy() { if (isServer()) { destroyAllConnectorResources(); } }
/** * It initializes the resource adapter. It also creates the default pools * and resources of all the connection definitions. * * @throws ConnectorRuntimeException This exception is thrown if the * ra.xml is invalid or the default pools and resources couldn't * be created */ public void setup() throws ConnectorRuntimeException { if (connectionDefs_ == null || connectionDefs_.length != 1) { _logger.log(Level.SEVERE, "rardeployment.invalid_connector_desc", moduleName_); String i18nMsg = localStrings.getString("ccp_adm.invalid_connector_desc", moduleName_); throw new ConnectorRuntimeException(i18nMsg); } if (isServer() && !isSystemRar(moduleName_)) { createAllConnectorResources(); } if(_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "Completed Active Resource adapter setup", moduleName_); } }