You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using jakarta.jms 3.1.0 and micronaut-jms-sqs 4.1.0
Is it expected behaviour for micronaut to acknowledge the message when RuntimeException is thrown? Sample:
@JMSListener(CONNECTION_FACTORY_BEAN_NAME)
public class MessageListener {
@Queue(value = "queue-name")
public void r(@MessageBody MessageBody messageBody) {
throw new RuntimeException("e");
}
}
JMSListener handleMessage(Message msg) code for errors:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Using
jakarta.jms
3.1.0 andmicronaut-jms-sqs
4.1.0Is it expected behaviour for micronaut to acknowledge the message when RuntimeException is thrown? Sample:
JMSListener handleMessage(Message msg)
code for errors:the exception is catched by the
LoggingJMSListenerErrorHandler
- the default error handler - and it is swallowed:exception is not propagated and then in `SQSSessionCallbackScheduler:
Beta Was this translation helpful? Give feedback.
All reactions