activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: How to avoid the starvation of consumer when using network broker?
Date Thu, 15 Sep 2011 15:10:32 GMT
You can use a connection pool and have it expire connections, so that
they get closed and rebalanced by failover or you can have a peek at
the new relay policy in 5.6.

try it out in a current 5.6-SNAPSHOT

2011/9/15 SuoNayi <>:
> I have two brokers A and B, they are networked bi-directionally.
> One producer on broker A sent a message to A,because broker A didnot have consumer so
broker A forwarded the message to broker B(assuming there is one consumer on broker B).
> Before the consumer began to consume the message, it died and failover to broker A.
> Because broker B will not forward the message to the consumer on broker A. So the message
will not be consumed.
> So how to avoid this issue?


View raw message