I tried setting trackMessages=true. Still I get duplicate messages. <bean id="connectionFactory2" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL"> <value>failover:(${jms.broker1.uri},${jms.broker2.uri})?randomize=false&jms.prefetchPolicy.queuePrefetch=1&maxReconnectAttempts=-1&trackMessages=true</value> </property> </bean>
I also added auditNetworkProducers in the transportConnector. <transportConnectors> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616" auditNetworkProducers="true"/> <transportConnector name="stomp" uri="stomp://0.0.0.0:52263"/> </transportConnectors> I see 2 messages stuck in 1 of the queues. All the duplicate messages are appearing from that queue. Could stuck messages cause issues with Ack of good messages - perhaps all messages are not Acked? Thanks -- View this message in context: http://activemq.2283324.n4.nabble.com/Duplicate-messages-sent-in-Active-MQ-5-7-tp4675063p4675229.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.