简体   繁体   中英

JMS Message consumed continously

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?

From what I could determine Tibco EMS doesn't actually support a redelivery delay and there's no support for such a feature directly within Mule either. There's a nice blog post about Mule with JMS redelivery, but it's using the redelivery functionality from ActiveMQ, not it's own.

TIBCO EMS is simple and straight. If it finds a consumer for queue, it sends the message without any delays. But wait, what if the message is not acknowledged? It retries till the maxredelivery is reached and pushes the message into the preserved queue. Also TIBCO EMS has provided an option to delay this re delivery ranging from 15 seconds to 8 hours. COntact your TIBCO EMS administrators for more info on this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM