/** * Utility method to get property value from ConnectorDescriptorInfo. * @param prop * @return */ protected String getPropertyValue(String prop, ConnectorConnectionPool connectorConnectionPool) { String result = null; ConnectorDescriptorInfo cdi = connectorConnectionPool.getConnectorDescriptorInfo(); Set mcfConfigProperties = cdi.getMCFConfigProperties(); Iterator mcfConfPropsIter = mcfConfigProperties.iterator(); while (mcfConfPropsIter.hasNext()) { ConnectorConfigProperty envProp = (ConnectorConfigProperty ) mcfConfPropsIter.next(); if (envProp.getName().toUpperCase(Locale.getDefault()).equals(prop)) { result = envProp.getValue(); } } return result; }
final String mcfClass = ccp.getConnectorDescriptorInfo().getManagedConnectionFactoryClass(); try { (mcf, ccp.getConnectorDescriptorInfo().getMCFConfigProperties()); setMethodAction.run(); if(_logger.isLoggable(Level.FINE)) {
/** * 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; }
connectorPoolObj.getConnectorDescriptorInfo().getRarName(); String connectionDefinitionName = connectorPoolObj.getConnectorDescriptorInfo(). getConnectionDefinitionName();
ccp = (ConnectorConnectionPool) namingService.lookup(poolInfo, jndiNameForPool); ConnectorDescriptorInfo cdi = ccp.getConnectorDescriptorInfo();
ConnectorDescriptorInfo oldCdi = oldCcp.getConnectorDescriptorInfo(); ConnectorDescriptorInfo newCdi = newCcp.getConnectorDescriptorInfo();
poolInfo); SetMethodAction sma = new SetMethodAction(mcf, ccp.getConnectorDescriptorInfo().getMCFConfigProperties()); try { sma.run();