/** * Returns the resource adapter object corresponding * to the pool * * @param connectorConnectionPool Name of the pool. * MCF pertaining to this pool is * created/returned. * @return Resource adapter instance corresponding to this pool. * @throws ConnectorRuntimeException if creation/retrieval * of RA fails */ private ActiveResourceAdapter getResourceAdapter(ConnectorConnectionPool connectorConnectionPool) throws ConnectorRuntimeException { String rarName = connectorConnectionPool.getConnectorDescriptorInfo().getRarName(); ActiveResourceAdapter activeResourceAdapter = getActiveResourceAdapter(rarName); if (activeResourceAdapter == null) { String i18nMsg = localStrings.getString("ccp_adm.active_ra_not_init", rarName); ConnectorRuntimeException cre = new ConnectorRuntimeException(i18nMsg); _logger.log(Level.SEVERE, "rardeployment.resourceadapter_not_initialized", rarName); if (_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "", cre); } throw cre; } return activeResourceAdapter; }
sb.append("\nrarName: "); if (connectorDescriptorInfo_ != null) { sb.append(connectorDescriptorInfo_.getRarName()); sb.append("\nresource adapter class: "); sb.append(connectorDescriptorInfo_.getResourceAdapterClassName());
connectorPoolObj.getConnectorDescriptorInfo().getRarName(); String connectionDefinitionName = connectorPoolObj.getConnectorDescriptorInfo().
RefAddr addr = new SerializableObjectRefAddr(PoolInfo.class.getName(), poolInfo); ref.add(addr); addr = new StringRefAddr("rarName", cdi.getRarName() ); ref.add(addr); RefAddr resAddr = new SerializableObjectRefAddr(ResourceInfo.class.getName(), resourceInfo);