spring boot - How do I limit the amount of times a JMS DefaultMessageListenerContainer will retry a message in ActiveMQ? -


how limit amount of times jms defaultmessagelistenercontainer retry message springboot , activemq.( know can achieve using jmsxdeliverycount property in ibm mq messagelistener).

the easiest approach use redeliverypolicy available in activemq. use spring boot, enable query params on broker url.

tcp://localhost:61616?jms.redeliverypolicy.maximumredeliveries=5

you can tweak other features, such time between redelivery etc options described in activemq.apache.org/redelivery-policy.html.


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -