activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xing <xing.w...@healthalliance.co.nz>
Subject Network of Brokers: cannot forward messages back to the broker from which they came
Date Wed, 06 Mar 2019 03:01:47 GMT
Create two brokers A and B with mesh network  connection as shown below

Broker A networkConnector
------------------------------------------
<networkConnectors>
    ...
    <networkConnector name="bridgeToB"
                      uri="static:(tcp://brokerB-host:61616)"
     networkTTL=”2”
     decreaseNetworkConsumerPriority="true"
     suppressDuplicateQueueSubscriptions="true" />
  ...
</networkConnectors>
------------------------------------------

------------------------------------------
Broker B networkConnector
------------------------------------------ 
<networkConnectors>
    ...
    <networkConnector name="bridgeToA"
                      uri="static:(tcp://brokerA-host:61616)"
     networkTTL=”2”
     decreaseNetworkConsumerPriority="true"
     suppressDuplicateQueueSubscriptions="true" />
     ...
</networkConnectors>

Steps to produce this problem
1. Send a number of messages (e.g. 100) to broker A
2. create a new consumer connecting to Broker B to consume a message, 100
message were successfully forwarded from  broker A to broker B and one
message was consumed by the consumer, there were 99 pending messages left in
broker B
3. Create another new consumer connected to broker A to receive message, but
no messages were forward from broker B back to broker A, as a result, the
consumer times out and no message was delivered from broker A. connect to B
can still get messages







--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Mime
View raw message