activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
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.

https://issues.apache.org/jira/browse/AMQ-2324?focusedCommentId=13059430&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13059430

try it out in a current 5.6-SNAPSHOT

2011/9/15 SuoNayi <suonayi2006@163.com>:
> 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?



-- 
http://fusesource.com
http://blog.garytully.com

Mime
View raw message