static XAOutflowedResources getOutflowedResources(final LocalTransaction transaction) { return (XAOutflowedResources) transaction.getResource(outflowKey); }
/** * Returns the XAResourceRegistry file for {@code transaction}. * * @param transaction the transaction * @return the XAResourceRegistry for {@code transaction}. If there is no such registry file, a new one is created. * @throws SystemException if an unexpected failure occurs when creating the registry file */ XAResourceRegistry getXAResourceRegistryFile(LocalTransaction transaction) throws SystemException { XAResourceRegistry registry = (XAResourceRegistry) transaction.getResource(XA_RESOURCE_REGISTRY_KEY); if (registry != null) return registry; registry = new XAResourceRegistryFile(transaction.getXid()); transaction.putResource(XA_RESOURCE_REGISTRY_KEY, registry); return registry; }
static XAOutflowedResources getOutflowedResources(final LocalTransaction transaction) { return (XAOutflowedResources) transaction.getResource(outflowKey); }
static XAOutflowedResources getOutflowedResources(final LocalTransaction transaction) { return (XAOutflowedResources) transaction.getResource(outflowKey); }
/** * Returns the XAResourceRegistry file for {@code transaction}. * * @param transaction the transaction * @return the XAResourceRegistry for {@code transaction}. If there is no such registry file, a new one is created. * @throws SystemException if an unexpected failure occurs when creating the registry file */ XAResourceRegistry getXAResourceRegistryFile(LocalTransaction transaction) throws SystemException { XAResourceRegistry registry = (XAResourceRegistry) transaction.getResource(XA_RESOURCE_REGISTRY_KEY); if (registry != null) return registry; registry = new XAResourceRegistryFile(transaction.getXid()); transaction.putResource(XA_RESOURCE_REGISTRY_KEY, registry); return registry; }
/** * Returns the XAResourceRegistry file for {@code transaction}. * * @param transaction the transaction * @return the XAResourceRegistry for {@code transaction}. If there is no such registry file, a new one is created. * @throws SystemException if an unexpected failure occurs when creating the registry file */ XAResourceRegistry getXAResourceRegistryFile(LocalTransaction transaction) throws SystemException { XAResourceRegistry registry = (XAResourceRegistry) transaction.getResource(XA_RESOURCE_REGISTRY_KEY); if (registry != null) return registry; registry = new XAResourceRegistryFile(transaction.getXid()); transaction.putResource(XA_RESOURCE_REGISTRY_KEY, registry); return registry; }