use of org.mule.runtime.core.internal.util.queue.PersistentXaTransactionContext in project mule by mulesoft.
the class XaTransactionRecoverer method commitDandlingTransaction.
public void commitDandlingTransaction(Xid xid, boolean onePhase) throws XAException {
try {
logger.info("Commiting dangling tx with id " + xid);
new PersistentXaTransactionContext(xaTxQueueTransactionJournal, queueProvider, xid).doCommit();
} catch (ResourceManagerException e) {
logger.warn(e.getMessage());
if (logger.isDebugEnabled()) {
logger.debug("Error committing dangling transaction", e);
}
throw new XAException(XAException.XAER_NOTA);
}
}
use of org.mule.runtime.core.internal.util.queue.PersistentXaTransactionContext in project mule by mulesoft.
the class XaTransactionRecoverer method rollbackDandlingTransaction.
public void rollbackDandlingTransaction(Xid xid) throws XAException {
try {
logger.info("Rollbacking dangling tx with id " + xid);
new PersistentXaTransactionContext(xaTxQueueTransactionJournal, queueProvider, xid).doRollback();
} catch (ResourceManagerException e) {
logger.warn(e.getMessage());
if (logger.isDebugEnabled()) {
logger.debug("Error rollbacking dangling transaction", e);
}
throw new XAException(XAException.XAER_NOTA);
}
}
Aggregations