Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AB76FA53 for ; Thu, 21 Mar 2013 01:12:08 +0000 (UTC) Received: (qmail 6766 invoked by uid 500); 21 Mar 2013 01:12:07 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 6736 invoked by uid 500); 21 Mar 2013 01:12:07 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 6728 invoked by uid 99); 21 Mar 2013 01:12:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 01:12:07 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_MESSAGE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of suonayi2006@163.com designates 220.181.13.122 as permitted sender) Received: from [220.181.13.122] (HELO m13-122.163.com) (220.181.13.122) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 01:12:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Subject:In-Reply-To: References:Content-Type:MIME-Version:Message-ID; bh=JDIGZ5T6YGPq meJuPLNZb44+JC/o7wYwGuPlfNxjJpw=; b=oT2epyj+WfklrsrmWS4GKUEubrZq yfXnBUglMfezekQrw5U6jzlRFGxR/9gr7dcsx4BDO2pC10F6ntwIVl+oNQAE4sGH pdnd0OiRB+ecBCCYGnNNHY67/DNtu1ji6hSbTekHEpFy60gMz4UQLMUfK8cQOWC9 OiOTlT9seMtM9TA= Received: from suonayi2006$163.com ( [203.119.80.8] ) by ajax-webmail-wmsvr122 (Coremail) ; Thu, 21 Mar 2013 09:11:38 +0800 (CST) X-Originating-IP: [203.119.80.8] Date: Thu, 21 Mar 2013 09:11:38 +0800 (CST) From: SuoNayi To: users@activemq.apache.org Subject: Re:ActiveMQ network of brokers don't forward messages back X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20130201(21528.5249.5248) Copyright (c) 2002-2013 www.mailtech.cn 163com In-Reply-To: <1363804988910-4664973.post@n4.nabble.com> References: <1363804988910-4664973.post@n4.nabble.com> X-CM-CTRLDATA: D+EiAmZvb3Rlcl9odG09MzA0MTo4MQ== Content-Type: multipart/alternative; boundary="----=_Part_30330_1411457406.1363828298945" MIME-Version: 1.0 Message-ID: <1f2c05ef.1f86.13d8a8054c1.Coremail.suonayi2006@163.com> X-CM-TRANSID: esGowEA5cUJNXkpRNpEFAA--.2274W X-CM-SenderInfo: xvxr0td1lsiiqw6rljoofrz/1tbiOwnmGlEACzd8gwABsd X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30330_1411457406.1363828298945 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit 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: Or you may take a look at the stuck messages section at the page, http://activemq.apache.org/networks-of-brokers.html 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: http://activemq.2283324.n4.nabble.com/ActiveMQ-network-of-brokers-don-t-forward-messages-back-tp4664973.html >Sent from the ActiveMQ - User mailing list archive at Nabble.com. ------=_Part_30330_1411457406.1363828298945--