/** * associates the given instance of ResourceAdapterAssociation with * the ResourceAdapter java-bean of the specified RAR * @param rarName resource-adapter-name * @param raa Object that is an instance of ResourceAdapterAssociation * @throws ResourceException when unable to associate the RA Bean with RAA instance. */ public void associateResourceAdapter(String rarName, ResourceAdapterAssociation raa) throws ResourceException { ResourceAdapter ra = ConnectorRegistry.getInstance(). getActiveResourceAdapter(rarName).getResourceAdapter(); if(ra != null){ raa.setResourceAdapter(ra); }else{ throw new ResourceException("RA Bean [ "+rarName+" ] not available"); } }
try { ResourceAdapter ra = ConnectorRegistry.getInstance(). getActiveResourceAdapter(resadapter_).getResourceAdapter(); ((ResourceAdapterAssociation) adminObject).setResourceAdapter(ra); } catch (ResourceException ex) {
ResourceAdapter raInstance = activeRA.getResourceAdapter(); if (loadedInstance instanceof ResourceAdapterAssociation) { ((ResourceAdapterAssociation)loadedInstance).