Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-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 4EA9473A2 for ; Fri, 19 Aug 2011 08:47:02 +0000 (UTC) Received: (qmail 18388 invoked by uid 500); 19 Aug 2011 08:47:02 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 17101 invoked by uid 500); 19 Aug 2011 08:46:51 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 17065 invoked by uid 99); 19 Aug 2011 08:46:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 08:46:48 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gsim@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 08:46:40 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7J8kIOQ020948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 19 Aug 2011 04:46:18 -0400 Received: from [10.3.229.215] (vpn-229-215.phx2.redhat.com [10.3.229.215]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p7J8kHGb024000 for ; Fri, 19 Aug 2011 04:46:18 -0400 Message-ID: <4E4E22A5.4070504@redhat.com> Date: Fri, 19 Aug 2011 09:45:25 +0100 From: Gordon Sim Organization: Red Hat UK Ltd, Registered in England and Wales under Company Registration No. 3798903, Directors: Michael Cunningham (USA), Mark Hegarty (Ireland), Matt Parsons (USA), Charlie Peters (USA) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Lightning/1.0b1 Thunderbird/3.0.10 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: Can't get federated brokers to work in References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Virus-Checked: Checked by ClamAV on apache.org On 08/18/2011 11:33 PM, Daryoush Mehrtash wrote: > I am trying to get two qpid c++ Brokers in a federation but can't get them > to work. I am trying to get the client (python) "spout" and "drain" to be > connected on two different brokers and have a queue route between them. > Following instruction on: > https://cwiki.apache.org/qpid/using-broker-federation.html > > I do the following > > 1) start up two brokers on two different machines > 2) ON the source machine where "spout" will be running do: > > qpid-config -a SOURCE_BROKER add queue public > > 3)ON destination machine where "drain" will be running do: > > qpid-route queue add DEST_BROKER SOURCE_BROKER amq.fanout public > > 4)Run spout on the source machine > ./spout -a SOURCE_BROKER public > > 5) try to run the "drain" on destination machine > ./drain -a DEST_BROKER public You don't have a queue called public on this broker. You either need to point drain at amq.fanout: ./drain -a DEST_BROKER amq.fanout or create the public and bind it to amq.fanout: qpid-config -a DEST_BROKER add queue public qpid-config -a DEST_BROKER bind a,q.fanout queue --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org