We have 2 data centres with 2 brokers on each side. 

Producers and consumers are initiated by different applications as well,
application also are deployed in the same 2 data centres but in different
servers, given this we also have added the priorityURI and priorityBackup
since order is important for us, application that produce or consume
messages needs to be processed in the same side and shouldn't change on a
regular basis. 


Broker config:

Option 1:
<networkConnector
uri="static:(tcp://DC1_B:6${activemq.port}6,tcp://DC2_A:6${activemq.port}6,tcp://DC2_B:6${activemq.port}6)"
name="cluster" networkTTL="3" decreaseNetworkConsumerPriority="true"
suppressDuplicateQueueSubscriptions="true" dynamicOnly="true"/>

Option 2:
<networkConnector uri="static:(tcp://DC1_B:6${activemq.port}6)"
name="cluster" networkTTL="3" suppressDuplicateQueueSubscriptions="true"
dynamicOnly="true"> </networkConnector>
<networkConnector
uri="static:(tcp://DC2_A:6${activemq.port}6,tcp://DC2_B:6${activemq.port}6)"
name="cluster2" networkTTL="3" suppressDuplicateQueueSubscriptions="true"
dynamicOnly="true" decreaseNetworkConsumerPriority="true">
</networkConnector>

Does the decreaseNetworkConsumerPriority matter in this case? 
The brokers producers and consumers start ups are all unpredictable, so we
just need it to go the same data centre. 



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-multiple-datacentre-and-multiple-apps-tp4716969.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to