ActiveMQ 5.7.0 - 连接时重复发送

时间:2013-09-16 18:47:09

标签: jms activemq apache-camel messagebroker

我经常在我的消费者身上得到这样的日志消息(吼叫)。

如何避免?

  

16/09/2013 14:02:36 WARN(ActiveMQMessageConsumer.java:1348) -   连接上重复发送:   ID:tablets-prod-43952-1379342529758-1:4给消费者:   ID:tablets-prod-43952-1379342529758-1:4:20:1,忽略(自动执行)   重复...

注释

  
      
  • 消费者和生产者都使用failover transport
  • 连接到经纪人   
  • 我只有一个ActiveMQ实例
  •   

生产者和消费者的连接字符串

  

故障转移:(ssl://“+ ip +”:“+ port +   “)maxReconnectAttempts = -1&安培;超时= 5000

经纪人配置

<destinationPolicy>
    <policyMap>
      <policyEntries>
        <policyEntry topic=">" producerFlowControl="false">
          <pendingMessageLimitStrategy>
            <constantPendingMessageLimitStrategy limit="1000"/>
          </pendingMessageLimitStrategy>
        </policyEntry>
        <policyEntry queue=">" producerFlowControl="false">
          <pendingQueuePolicy>
            <vmQueueCursor/>
          </pendingQueuePolicy>
        </policyEntry>
      </policyEntries>
    </policyMap>
</destinationPolicy>

另一个问题是:

我的消费者经常收到重复的消息。我的意思是两个具有相同主体/有效负载的消息。我知道因为我身体里面有自己的身份证,我只发一次。

任何高手都可以帮助我吗?

0 个答案:

没有答案