RecoverableXAResource service may be provided by a
ResourceProvider if 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 |
|---|---|
| public static final String | OSGI_RECOVERY_ENABLED
This service property key is used by |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public javax. | Returns: a valid, connected, XAResourceGet a new, valid XAResource that can be used in recovery
This XAResource will be returned later using the
|
| public void | releaseXAResource(javax.
An xaResXAResource previously returned
by getXAResource()Release the XAResource that has been used for recovery |
| OSGI_RECOVERY_ENABLED | back to summary |
|---|---|
| public static final String OSGI_RECOVERY_ENABLED This service property key is used by | |
| getId | back to summary |
|---|---|
| public String getId() Get the id of this resource. This should be unique, and persist between restarts
| |
| getXAResource | back to summary |
|---|---|
| public javax. Get a new, valid XAResource that can be used in recovery
This XAResource will be returned later using the
| |
| releaseXAResource | back to summary |
|---|---|
| public void releaseXAResource(javax. Release the XAResource that has been used for recovery
| |