I started using Anypoint MQ Subscribe
with Max Redelivery Count
set to 2.
Application should throw ANYPOINT-MQ:RETRY_EXHAUSTED exception after 2 failed deliveries, but the message was returned back to main queue and picked up again in the next batch.
I am trying to put the messages in DLQ
manually after 2 failed deliveries using Try scope.
Any idea, how to put the messages in DLQ manually?