I have a JMS listener config in Mule 4 that would subscribe to messages from a topic in Tibco JMS broker. In case of any failure, the JMS message gets persisted in the topic.
Consider if there is a runtime issue or some intermittent issue while processing the message it will be thrown an exception and message would be persisted in the topic. But the problem here is it would get consumed again without any delay which leads to a continuous exception bombarded in the logs and multiple numbers of failure messages stored in the DB error log table for the same reason.
Is there any way to consume messages from the topic with a certain delay?