/** * Create instance */ public RaRepositoryService() { this.value = new SimpleResourceAdapterRepository(); }
@Override public void start(StartContext context) throws StartException { ((SimpleResourceAdapterRepository) value).setMetadataRepository(mdrValue.getValue()); ((SimpleResourceAdapterRepository) value).setTransactionIntegration(tiValue.getValue()); MDR_LOGGER.debugf("Starting service RaRepositoryService"); }
@Override public void start(StartContext context) throws StartException { ((SimpleResourceAdapterRepository) value).setMetadataRepository(mdrValue.getValue()); MDR_LOGGER.debugf("Starting service NonJTADataSourceRaRepositoryService"); }
/** * {@inheritDoc} */ public synchronized Endpoint getEndpoint(String uniqueId) throws NotFoundException { if (uniqueId == null) throw new IllegalArgumentException("UniqueId is null"); if (uniqueId.trim().equals("")) throw new IllegalArgumentException("UniqueId is empty"); if (!rars.containsKey(uniqueId)) throw new NotFoundException(bundle.keyNotRegistered(uniqueId)); WeakReference<javax.resource.spi.ResourceAdapter> ra = rars.get(uniqueId); if (ra.get() == null) throw new NotFoundException(bundle.keyNotRegistered(uniqueId)); String mdrIdentifier = getMDRIdentifier(ra.get()); boolean is16 = is16(mdrIdentifier); Set<String> beanValidationGroups = getBeanValidationGroups(mdrIdentifier); String productName = getProductName(mdrIdentifier); String productVersion = getProductVersion(mdrIdentifier); Boolean isXA = recovery.get(uniqueId); if (isXA == null) isXA = Boolean.TRUE; return new EndpointImpl(ra, is16, beanValidationGroups, productName, productVersion, transactionIntegration, isXA.booleanValue()); }
ClassLoader cl = SecurityActions.getClassLoader(rar.getClass()); configProperties.putAll(introspectActivationSpec(asClz)); ActivationImpl a = new ActivationImpl(rar, asClz, Collections.unmodifiableMap(configProperties), Collections.unmodifiableMap(valueProperties)); return new MessageListenerImpl(type, a);
ClassLoader oldTCCL = SecurityActions.getThreadContextClassLoader(); try SecurityActions.setThreadContextClassLoader(SecurityActions.getClassLoader(rar.getClass())); Class<?> clz = Class.forName(group, true, SecurityActions.getClassLoader(rar.getClass())); groups.add(clz); SecurityActions.setThreadContextClassLoader(oldTCCL);
Method[] methods = SecurityActions.getMethods(clz); if (methods.length > 0)
ClassLoader cl = SecurityActions.getClassLoader(rar.getClass()); Class<?> mlType = Class.forName(ml.getMessagelistenerType().getValue(), true, cl);
result.add(createMessageListener(rar, ml));
@Override public void start(StartContext context) throws StartException { ((SimpleResourceAdapterRepository) value).setMetadataRepository(mdrValue.getValue()); ((SimpleResourceAdapterRepository) value).setTransactionIntegration(tiValue.getValue()); MDR_LOGGER.debugf("Starting service RaRepositoryService"); }
/** * Create instance */ public NonJTADataSourceRaRepositoryService() { this.value = new SimpleResourceAdapterRepository(); }
@Override public void start(StartContext context) throws StartException { ((SimpleResourceAdapterRepository) value).setMetadataRepository(mdrValue.getValue()); MDR_LOGGER.debugf("Starting service RaRepositoryService"); }
/** * Create instance */ public NonJTADataSourceRaRepositoryService() { this.value = new SimpleResourceAdapterRepository(); }
@Override public void start(StartContext context) throws StartException { ((SimpleResourceAdapterRepository) value).setMetadataRepository(mdrValue.getValue()); MDR_LOGGER.debugf("Starting service NonJTADataSourceRaRepositoryService"); }
/** * Create instance */ public RaRepositoryService() { this.value = new SimpleResourceAdapterRepository(); }
/** * Create instance */ public RaRepositoryService() { this.value = new SimpleResourceAdapterRepository(); }