activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SuoNayi <>
Subject Re:ActiveMQ network of brokers don't forward messages back
Date Thu, 21 Mar 2013 01:11:38 GMT
As default, a message can pass through a broker only once.
Since your message has passed through broker A so it won't be replayed 
except for your additional requirement. 
You can enable replay feature via adding policy for you queue like this:
<policyEntry queue=">" >
            <conditionalNetworkBridgeFilterFactory replayWhenNoConsumers="true"/></policyEntry>

Or you may take a look at  the stuck messages section at the page,
In your use case new messages should be forwarded to the consumer on broker A.

At 2013-03-21 02:43:08,carlzuo <> wrote:
>I had two ActiveMQ brokers (A and B) that were configured as store-forward
>network. They work perfectly to forward messages from A to B when there is a
>consumer connected on broker B and producer sends messages to A. The problem
>is that when the consumer is killed and reconnected to A, the queued
>messages on B (they were forwarded from A) won't forward back to A where the
>consumer connected to. Even I send new messages to B, all messages were
>stuck on B until I restart brokers. I have tried to set networkTTL="4" and
>duplex="true" on the broker network connector, but it doesn't work.
>View this message in context:
>Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message