Note that there are some explanatory texts on larger screens.

plurals
  1. POActiveMQ 5.7.0 - Duplicate dispatch on connection
    text
    copied!<p>I frequently get log messages like that (bellow) on my consumer.</p> <p>How to avoid that?</p> <blockquote> <p>16/09/2013 14:02:36 WARN (ActiveMQMessageConsumer.java:1348) - Duplicate dispatch on connection: ID:tablets-prod-43952-1379342529758-1:4 to consumer: ID:tablets-prod-43952-1379342529758-1:4:20:1, ignoring (auto acking) duplicate...</p> </blockquote> <p>Notes</p> <blockquote> <ul> <li>Both, consumer and producer connect to the broker using the <a href="http://activemq.apache.org/failover-transport-reference.html" rel="nofollow">failover transport</a></li> <li>I have only a single instance of ActiveMQ</li> </ul> </blockquote> <p>Connection string for producer and consumer</p> <blockquote> <p>failover:(ssl://" + ip + ":" + port + ")?maxReconnectAttempts=-1&amp;timeout=5000</p> </blockquote> <p>Broker config</p> <pre><code>&lt;destinationPolicy&gt; &lt;policyMap&gt; &lt;policyEntries&gt; &lt;policyEntry topic="&gt;" producerFlowControl="false"&gt; &lt;pendingMessageLimitStrategy&gt; &lt;constantPendingMessageLimitStrategy limit="1000"/&gt; &lt;/pendingMessageLimitStrategy&gt; &lt;/policyEntry&gt; &lt;policyEntry queue="&gt;" producerFlowControl="false"&gt; &lt;pendingQueuePolicy&gt; &lt;vmQueueCursor/&gt; &lt;/pendingQueuePolicy&gt; &lt;/policyEntry&gt; &lt;/policyEntries&gt; &lt;/policyMap&gt; &lt;/destinationPolicy&gt; </code></pre> <p>Another problem is:</p> <p>My consumer frequently receive duplicated messages. I mean two messages with the same body/payload. I know that because i have my own id inside the body that i send only once. </p> <p>Any master can help me?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload