Rethrow unhandled JMS listener exceptions

Fixes gh-32666
This commit is contained in:
Brian Clozel
2024-04-18 21:44:44 +02:00
parent da4547a27e
commit 0268180799

View File

@@ -344,6 +344,7 @@ public abstract class AbstractPollingMessageListenerContainer extends AbstractMe
}
catch (Throwable throwable) {
observation.error(throwable);
throw throwable;
}
// Rethrow JMSException to indicate an infrastructure problem
// that may have to trigger recovery...