ARTEMIS-136 extending XA change to also cover RBOTHER
This commit is contained in:
parent
e690da96a6
commit
f401a67ffe
|
@ -1242,7 +1242,7 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
|
|||
{
|
||||
ActiveMQClientLogger.LOGGER.debug("Error on rollback during end call!", ignored);
|
||||
}
|
||||
throw new XAException(XAException.XA_RBOTHER);
|
||||
throw new XAException(XAException.XAER_RMFAIL);
|
||||
}
|
||||
|
||||
try
|
||||
|
@ -1393,7 +1393,7 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
|
|||
|
||||
if (rollbackOnly)
|
||||
{
|
||||
throw new XAException(XAException.XA_RBOTHER);
|
||||
throw new XAException(XAException.XAER_RMFAIL);
|
||||
}
|
||||
|
||||
// Note - don't need to flush acks since the previous end would have
|
||||
|
@ -1437,7 +1437,7 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
|
|||
|
||||
ActiveMQClientLogger.LOGGER.errorDuringPrepare(e);
|
||||
|
||||
throw new XAException(XAException.XA_RBOTHER);
|
||||
throw new XAException(XAException.XAER_RMFAIL);
|
||||
}
|
||||
|
||||
ActiveMQClientLogger.LOGGER.errorDuringPrepare(e);
|
||||
|
|
|
@ -1185,7 +1185,7 @@ public class FailoverTest extends FailoverTestBase
|
|||
}
|
||||
catch (XAException e)
|
||||
{
|
||||
Assert.assertEquals(XAException.XA_RBOTHER, e.errorCode);
|
||||
Assert.assertEquals(XAException.XAER_RMFAIL, e.errorCode);
|
||||
}
|
||||
|
||||
ClientConsumer consumer = session.createConsumer(FailoverTestBase.ADDRESS);
|
||||
|
@ -1268,7 +1268,7 @@ public class FailoverTest extends FailoverTestBase
|
|||
}
|
||||
catch (XAException e)
|
||||
{
|
||||
Assert.assertEquals(XAException.XA_RBOTHER, e.errorCode);
|
||||
Assert.assertEquals(XAException.XAER_RMFAIL, e.errorCode);
|
||||
// XXXX session.rollback();
|
||||
}
|
||||
|
||||
|
@ -1405,7 +1405,7 @@ public class FailoverTest extends FailoverTestBase
|
|||
}
|
||||
catch (XAException e)
|
||||
{
|
||||
Assert.assertEquals(XAException.XA_RBOTHER, e.errorCode);
|
||||
Assert.assertEquals(XAException.XAER_RMFAIL, e.errorCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1491,7 +1491,7 @@ public class FailoverTest extends FailoverTestBase
|
|||
}
|
||||
catch (XAException e)
|
||||
{
|
||||
Assert.assertEquals(XAException.XA_RBOTHER, e.errorCode);
|
||||
Assert.assertEquals(XAException.XAER_RMFAIL, e.errorCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue