Merge branch '6.1.x'

This commit is contained in:
Brian Clozel
2024-03-15 22:48:12 +01:00
2 changed files with 38 additions and 2 deletions

View File

@@ -339,7 +339,12 @@ public abstract class AbstractPollingMessageListenerContainer extends AbstractMe
}
status.setRollbackOnly();
}
handleListenerException(ex);
try {
handleListenerException(ex);
}
catch (Throwable throwable) {
observation.error(throwable);
}
// Rethrow JMSException to indicate an infrastructure problem
// that may have to trigger recovery...
if (ex instanceof JMSException jmsException) {