spring-integration
spring-integration copied to clipboard
Consider adding maximumDeliveries or similar to JMS message-driven adapters when JMSXRedliveryCount is available [INT-4472]
Gary Russell opened INT-4472 and commented
From the SO discussion:
OP: camel has a concept of maximumRedeliveries on exception, i thought there is something in spring integration that i missed.
GR: With Spring Integration you would have to add .errorChannel(someErrorChannel()) to the adapter, and check the delivery count in the payload.failedMessage.headers and either re-throw or consume/log the failure. We could consider adding built-in support for when the broker does provide that header. I'll open a JIRA issue.
Perhaps only valid if there is no errorChannel.
Reference URL: https://stackoverflow.com/questions/50413144/how-to-deal-with-jms-message-consumer-with-dups-ok-acknowledge-on-exception/50414118#comment87848285_50414118