activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srivmeka <srivmeka.car...@gmail.com>
Subject Duplicate Messages in the Message Store
Date Fri, 14 Apr 2017 07:51:51 GMT
Hi,
Am facing issue with broker trying to insert duplicate message into
activemq_msgs.

This was observed during
1) Broker fail over
2) Data center/Application fail over where the primary broker changes per
data center, note there is no broker shutdown here.

I am using JDBC persistent Adapter and 
<broker brokerName="partner-broker"
xmlns="http://activemq.apache.org/schema/core">
		<persistenceAdapter>
			<jdbcPersistenceAdapter dataSource="#amq-dataSource"
useDatabaseLock="false"/>
		</persistenceAdapter>
		<transportConnectors>
			
			<transportConnector name="openwire1"
uri="tcp://${activemq.broker1.hostname}:${activemq.broker1.portId}?maximumConnections=1000"/>
		</transportConnectors>		
	</broker>

I have difficulty in understanding how broker inserts messages into message
queues.
The code in activemq jar does explain that it gets the max(ID) for next
sequence generator but when is this really happening? Is there any caching
mechanism here? What is the message is already consumed and deleted, how can
it get the MAX(ID)?

Thanks,
Sri





--
View this message in context: http://activemq.2283324.n4.nabble.com/Duplicate-Messages-in-the-Message-Store-tp4724959.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message