Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 91986 invoked from network); 13 May 2008 16:44:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2008 16:44:09 -0000 Received: (qmail 59661 invoked by uid 500); 13 May 2008 16:44:10 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 59636 invoked by uid 500); 13 May 2008 16:44:10 -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 59625 invoked by uid 99); 13 May 2008 16:44:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 09:44:10 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 16:43:21 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JvxbD-0005Xr-Ii for users@activemq.apache.org; Tue, 13 May 2008 09:43:35 -0700 Message-ID: <17213034.post@talk.nabble.com> Date: Tue, 13 May 2008 09:43:35 -0700 (PDT) From: ttmdev To: users@activemq.apache.org Subject: Re: "Duplex" problems In-Reply-To: <16601619.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: joe.fernandez@ttmsolutions.com References: <16601619.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I also ran across this issue with the latest 5.1. Messages bounce back and forth between the 2 brokers via the duplex transport until the ttl count expires. The DemandForwardingBridge doesn't check where the message came from before sending it back off to the remote. Working on a patch for the corresponding JIRA. https://issues.apache.org/activemq/browse/AMQ-1661 Joe Get a free ActiveMQ user guide at www.ttmsolutions.com MikeF73 wrote: > > I have two brokers (call them A and B), where A establishes a connection > to B with the options: > duplex="true" networkTTL="3" dynamicOnly="true" > > I have two clients connecting to broker A, and one to B. One of the > clients on A is subscribing to a queue, the other is publishing to it. > The client on B is not using that queue at all. When the publishing > client sends a message, the subscriber receives it as expected. But if I > watch the network with a sniffer, I can see the message being sent to > broker B and back again. > > I also set up a topic that all of the clients subscribe to. If a client > on A sends a message to the topic, the client on B receives it normally, > but the two clients on A receive the message twice. I can see with the > sniffer that the message is being sent from A to B and back. > > If I change the connection so that it's not duplex (i.e. I set up matching > simplex connections on both brokers) all of this unexpected behavior goes > away. In the first example, the messages are no longer forwarded to B > since there are no subscribers on that broker. In the second example, the > message is received once by every subscriber. > > Did I misconfigure my duplex connection somehow? I can run it with the > two simplex connections for now since I'm in a test environment, but I'm > going to need to move to duplex for production. > > Thanks! > > EDIT: this is the 5.1 4/8/08 snapshot > -- View this message in context: http://www.nabble.com/%22Duplex%22-problems-tp16601619s2354p17213034.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.