Skip to content

Commit

Permalink
Fixing ARTEMIS-4652 using Mirek's idea on not closing connection on X…
Browse files Browse the repository at this point in the history
…AER_NOTA.

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
  • Loading branch information
ehsavoie committed Mar 22, 2024
1 parent 11b7671 commit 79d70e0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,10 @@ public void close() {
*/
protected XAException check(final XAException e) throws XAException {
ActiveMQXARecoveryLogger.LOGGER.xaRecoveryError(e);

// If any exception happened, we close the connection so we may start fresh
close();
if (e.errorCode != XAException.XAER_NOTA) {
// If any exception happened, we close the connection so we may start fresh
close();
}
throw e;
}

Expand Down

0 comments on commit 79d70e0

Please sign in to comment.