Skip to content

Commit 0268180

Browse files
committed
Rethrow unhandled JMS listener exceptions
Fixes gh-32666
1 parent da4547a commit 0268180

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-jms/src/main/java/org/springframework/jms/listener/AbstractPollingMessageListenerContainer.java

+1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ protected boolean doReceiveAndExecute(Object invoker, @Nullable Session session,
344344
}
345345
catch (Throwable throwable) {
346346
observation.error(throwable);
347+
throw throwable;
347348
}
348349
// Rethrow JMSException to indicate an infrastructure problem
349350
// that may have to trigger recovery...

0 commit comments

Comments
 (0)