-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Doc: Clarify AUTO_ACKNOWLEDGE semantics with SimpleMessageListenerContainer [SPR-13278] #17869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Juergen Hoeller commented This is a consequence of the fix for #17644, since we only call From a common JMS perspective, So from that perspective, you've been relying on non-guaranteed behavior in AUTO mode before. My recommendation would be to switch to Juergen |
Lubos Krnac commented I see, nice explanation.
I was trying it with HornetQ and ActiveMQ. Same behavior. It's because
|
Stéphane Nicoll commented A sample project is available here |
Juergen Hoeller commented I am afraid I was mistaken above: JMS brokers do not provide consistent redelivery semantics for This is actually why we opted to not propagate exceptions to the broker in As a consequence, I'm turning this into a documentation task. The current runtime behavior is correct from my perspective, both from our intentions and also following the JMS spec, and just needs to be clearly stated. To get the desired effect of consistent redelivery, you'll have to use Juergen |
Lubos Krnac commented I was also mistaken and though that throwing runtime exception from message listener is valid scenario. JEE 7 Tutorial clearly states that it's not true:
Sorry for confusion. |
Lubos Krnac opened SPR-13278 and commented
Re-delivery of message when exception happen for combination AUTO_ACKNOWLEDGE and SimpleJmsListenerContainerFactory doesn't work since 4.1.7.RELEASE.
To reproduce I submitted spring-framework-issues sample project. Test expects duplicate message to be stored in DB, because app simulates error for first received message.
Behavior is different for Spring Boot 1.2.5.RELEASE in comparison to 1.2.4.RELEASE.
Affects: 3.2.14, 4.1.7
Reference URL: spring-attic/spring-framework-issues#100
Issue Links:
Backported to: 4.1.8, 3.2.15
The text was updated successfully, but these errors were encountered: