Avoiding duplicated messages on JMS/ActiveMQ

前端 未结 5 1470
时光取名叫无心
时光取名叫无心 2020-12-14 08:54

Is there a way to suppress duplicated messages on a queue defined on ActiveMQ server?

I tried to define manually JMSMessageID, (message.setJMSMessageID(\"uniqueid\")

5条回答
  •  醉话见心
    2020-12-14 09:25

    You should look at Apache Camel, it provides an Idempotent consumer component that would work with any JMS provider, see: http://camel.apache.org/idempotent-consumer.html

    Using that in combination with the ActiveMQ component makes using JMS quite simple, see: http://camel.apache.org/activemq.html

提交回复
热议问题