public class QueueXaResource extends DefaultXASession<XaQueueTypeTransactionContextAdapter>
localContext, localXid, logger, resourceManager
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
QueueXaResource(AbstractXAResourceManager xaResourceManager,
XaTransactionRecoverer xaTransactionRecoverer,
QueueProvider queueProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
commitDanglingTransaction(Xid xid,
boolean onePhase)
Commits a dangling transaction that can be caused by the failure of one
of the XAResource involved in the transaction or a crash of the transaction manager.
|
protected XaQueueTypeTransactionContextAdapter |
createTransactionContext(Xid xid)
Creates a new transaction context with the given transaction identifier
|
Xid[] |
recover(int i) |
protected void |
rollbackDandlingTransaction(Xid xid)
Commits a dangling transaction that can be caused by the failure of one
of the XAResource involved in the transaction or a crash of the transaction manager.
|
commit, end, forget, getResourceManager, getTransactionContext, getTransactionTimeout, getXAResource, isSameRM, prepare, rollback, setTransactionTimeout, start
public QueueXaResource(AbstractXAResourceManager xaResourceManager, XaTransactionRecoverer xaTransactionRecoverer, QueueProvider queueProvider)
protected void commitDanglingTransaction(Xid xid, boolean onePhase) throws XAException
DefaultXASession
commitDanglingTransaction
in class DefaultXASession<XaQueueTypeTransactionContextAdapter>
xid
- transaction identifieronePhase
- if the commit should be done using only one phase commitXAException
protected void rollbackDandlingTransaction(Xid xid) throws XAException
DefaultXASession
rollbackDandlingTransaction
in class DefaultXASession<XaQueueTypeTransactionContextAdapter>
xid
- transaction identifierXAException
protected XaQueueTypeTransactionContextAdapter createTransactionContext(Xid xid)
DefaultXASession
createTransactionContext
in class DefaultXASession<XaQueueTypeTransactionContextAdapter>
xid
- transaction identifierpublic Xid[] recover(int i) throws XAException
XAException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.