public void updateConfigurationProperties(String entityName,
			ConfigProperties properties) throws NullPointerException,
			UnrecognizedResourceAdaptorEntityException, InvalidStateException,
			InvalidConfigurationException {

		if (logger.isDebugEnabled()) {
			logger.debug("Updating RA Entity with properties: " + properties);
		}

		if (entityName == null) {
			throw new NullPointerException("null entity name");
		}

		if (properties == null) {
			throw new NullPointerException("null config properties");
		}

		final ResourceAdaptorEntity raEntity = this.resourceAdaptorEntities
				.get(entityName);
		if (raEntity == null) {
			throw new UnrecognizedResourceAdaptorEntityException(
					"Resource Adaptor Entity " + entityName + " not found.");
		} else {
			final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
			Thread.currentThread().setContextClassLoader(raEntity.getComponent().getClassLoader());
			try {
				raEntity.updateConfigurationProperties(properties);
				logger.info("Updated RA Entity with properties: " + properties);
			}
			finally {
				Thread.currentThread().setContextClassLoader(classLoader);
			}
		}
	}
public void updateConfigurationProperties ( String entityName , ConfigProperties properties ) throws NullPointerException , UnrecognizedResourceAdaptorEntityException , InvalidStateException , InvalidConfigurationException { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Updating RA Entity with properties: " + properties ) ; } if ( entityName == null ) { throw new NullPointerException ( "null entity name" ) ; } if ( properties == null ) { throw new NullPointerException ( "null config properties" ) ; } final ResourceAdaptorEntity raEntity = this . resourceAdaptorEntities . get ( entityName ) ; if ( raEntity == null ) { throw new UnrecognizedResourceAdaptorEntityException ( "Resource Adaptor Entity " + entityName + " not found." ) ; } else { final ClassLoader classLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; Thread . currentThread ( ) . setContextClassLoader ( raEntity . getComponent ( ) . getClassLoader ( ) ) ; try { raEntity . updateConfigurationProperties ( properties ) ; logger . info ( "Updated RA Entity with properties: " + properties ) ; } finally { Thread . currentThread ( ) . setContextClassLoader ( classLoader ) ; } } }
@see ResourceManagementMBean#updateConfigurationProperties(String,
ConfigProperties)