I am trying to implement Exception handling in Mule.
I used Rollback Exception Strategy for re trying the message before taking it as a errored out message.
I have the Exception strategy as below.
<rollback-exception-strategy maxRedeliveryAttempts="3" doc:name="Rollback Exception Strategy">
<logger message="message1 #[exception]" level="INFO" doc:name="Logger"/>
<file:outbound-endpoint path="C:\\MuleSamples\backout" responseTimeout="10000" doc:name="File"/>
<on-redelivery-attempts-exceeded doc:name="Redelivery exhausted">
<logger message="#[message.exceptionPayload]" level="INFO" doc:name="Logger"/>
<file:outbound-endpoint path="C:\\MuleSamples\backout" outputPattern="backoutmsg.xml" responseTimeout="10000" doc:name="File"/>
</on-redelivery-attempts-exceeded>
</rollback-exception-strategy>
This is not working, as I expected, even though I configured RedeliveryAttempts as 3, the flow is not redelivering the message. It is just processing it once.
I dont understand what Im missing here.
I have WMQ Inbound Endpoint and used WMQ_transaction.
Any help will be greatly appreciated.