Skip to content

Commit

Permalink
[EJBCLIENT-373] Don't throw XAException.XAER_NOTA in EAP6 <-> EAP7 in…
Browse files Browse the repository at this point in the history
…teroperability scenario (#461)
  • Loading branch information
tadamski authored Jun 2, 2020
1 parent 86c6be6 commit 75ab7f6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,10 @@ private void handleTxnRequest(final int code, final int invId, final MessageInpu
default: throw Assert.impossibleSwitchCase(code);
}
} catch (XAException e) {
writeFailedResponse(invId, e);
//EJBCLIENT-373
if (!((version <= 2) && (e.errorCode == XAException.XAER_NOTA))) {
writeFailedResponse(invId, e);
}
} else if (transactionID instanceof UserTransactionID) try {
final LocalTransaction localTransaction = transactionServer.removeTransaction(((UserTransactionID) transactionID).getId());
switch (code) {
Expand Down

0 comments on commit 75ab7f6

Please sign in to comment.