@ConsumerType public interface RecoverableXAResource
RecoverableXAResourceservice may be provided by a
ResourceProviderif they are able to support XA recovery operations. There are two main sorts of recovery:
getId()provides a persistent name that can be used to correlate usage of the resource both before and after failure. This identifier must also be passed to
TransactionContext.registerXAResource(XAResource, String)each time the recoverable resource is used.
|Modifier and Type||Field and Description|
This service property key is used by
|Modifier and Type||Method and Description|
Get the id of this resource.
Get a new, valid XAResource that can be used in recovery This XAResource will be returned later using the
Release the XAResource that has been used for recovery
static final java.lang.String OSGI_RECOVERY_ENABLED
ResourceProviderfactories to indicate that they can support transaction recovery.
javax.transaction.xa.XAResource getXAResource() throws java.lang.Exception
java.lang.Exception- If it is not possible to acquire a valid XAResource at the current time, for example if the database is temporarily unavailable.
void releaseXAResource(javax.transaction.xa.XAResource xaRes)
XAResourcepreviously returned by
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0