/** * 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"); }
/** * {@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()); }
@Override public void start(StartContext context) throws StartException { ((SimpleResourceAdapterRepository) value).setMetadataRepository(mdrValue.getValue()); MDR_LOGGER.debugf("Starting service NonJTADataSourceRaRepositoryService"); }
configProperties.putAll(introspectActivationSpec(asClz));
result.add(createMessageListener(rar, ml));
@Override public void start(StartContext context) throws StartException { ((SimpleResourceAdapterRepository) value).setMetadataRepository(mdrValue.getValue()); MDR_LOGGER.debugf("Starting service RaRepositoryService"); }
@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 NonJTADataSourceRaRepositoryService"); }
/** * Create instance */ public NonJTADataSourceRaRepositoryService() { this.value = new SimpleResourceAdapterRepository(); }
/** * Create instance */ public RaRepositoryService() { this.value = new SimpleResourceAdapterRepository(); }
/** * Create instance */ public RaRepositoryService() { this.value = new SimpleResourceAdapterRepository(); }