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 AF56F10874 for ; Fri, 3 Jan 2014 15:31:13 +0000 (UTC) Received: (qmail 69254 invoked by uid 500); 3 Jan 2014 15:31:12 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 69036 invoked by uid 500); 3 Jan 2014 15:31:11 -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 69028 invoked by uid 99); 3 Jan 2014 15:31:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jan 2014 15:31:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of skattelmann@tpip.net designates 92.43.49.48 as permitted sender) Received: from [92.43.49.48] (HELO mail.tpip.net) (92.43.49.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jan 2014 15:31:03 +0000 Received: from office.tpip.net (port-87-193-171-186.static.qsc.de [87.193.171.186]) by mail.tpip.net (Postfix) with ESMTP id 89C964F403 for ; Fri, 3 Jan 2014 15:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tpip.net; s=k2011; t=1388763043; bh=ckR8XagE2BeG2FIWv10DlxMPSdHFlVr3FTaSgKoCudQ=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=FxudVNXiUvrF1bLKgWZhf0m0Om8/EIUJRm0S9wwcdeG69EkIscPcL1SCcFlOch6WV lpZQWFOAjx//fIIcvXoCLk8dhbOnhKgxaOi7PZUPaWlwkiQKeBjvi/ruUAHuODy74x BH8OlGYP51Ic1ZgPbJmUOQOCQa9uwN6T0Yr8SNqw= Received: from localhost (localhost [127.0.0.1]) by office.tpip.net (Postfix) with ESMTP id B470C40780 for ; Fri, 3 Jan 2014 16:30:38 +0100 (CET) Received: from office.tpip.net ([127.0.0.1]) by localhost (office.tpip.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id uUVTzJcgY2kw for ; Fri, 3 Jan 2014 16:30:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by office.tpip.net (Postfix) with ESMTP id BCAD840781 for ; Fri, 3 Jan 2014 16:30:37 +0100 (CET) X-Virus-Scanned: amavisd-new at tpip.net Received: from office.tpip.net ([127.0.0.1]) by localhost (office.tpip.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 66dNeFaOyvOQ for ; Fri, 3 Jan 2014 16:30:37 +0100 (CET) Received: from [192.168.13.80] (unknown [192.168.13.80]) by office.tpip.net (Postfix) with ESMTPSA id 8D9854006B for ; Fri, 3 Jan 2014 16:30:37 +0100 (CET) Message-ID: <52C6D79D.3080707@tpip.net> Date: Fri, 03 Jan 2014 16:30:37 +0100 From: Sascha Kattelmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: Dispatch Router message routing References: <52C69EDB.9020105@tpip.net> <52C6CB90.3000506@redhat.com> In-Reply-To: <52C6CB90.3000506@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thank you! I totally missed the part with the inter-router connection. Now everything is working as expected. -Sascha On 01/03/2014 03:39 PM, Ted Ross wrote: > On 01/03/2014 06:28 AM, Sascha Kattelmann wrote: >> Hi, >> >> I'm currently working on gathering logs from devices in a network via >> AMQP. The dispatch router seems to be a good choice for this. I tried >> the examples provided with >> >> svn.apache.org/repos/asf/qpid/dispatch/trunk/doc/book/release-0.1.md >> >> and everything works fine (I'm using the rc3 of Proton 0.6). Then I >> tried using two routers (on different machines) in a network to test >> routing a message but from the provided documentation I'm not able to >> figure out how to get this running. Are there examples of message >> routing available? I'm especially interested in the use of the >> 'to'-field of an AMQP message. >> >> -Sascha >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org >> For additional commands, e-mail: users-help@qpid.apache.org >> > > Sascha, > > I'll add this to the documentation... > > A starting point for you can be found in the tests/config-2 folder > which has two configuration files. Please note that this > configuration is for two routers on the same host (for testing). I'll > give an example here for how to do two routers on separate hosts. > > First, make sure both routers are configured in "interior" mode. This > will enable the inter-router protocol: > > router { > mode: interior > router-id: QDR.A > } > > Also ensure that each router has a different router-id (e.g. "QDR.A" > and "QDR.B"). > > I assume you will want each router to be available on the standard > port. To do this, each configuration should contain a standard listener: > > listener { > addr: 0.0.0.0 > port: amqp > sasl-mechanisms: ANONYMOUS > } > > You then need to establish an inter-router connection. Pick a port > (say 20000) and create a listener on one router and a connector on the > other. > > Listener (on one router): > > listener { > role: inter-router > addr: 0.0.0.0 > port: 20000 > sasl-mechanisms: ANONYMOUS > } > > Connector (on the other router): > > connector { > role: inter-router > addr: > port: 20000 > sasl-mechanisms: ANONYMOUS > } > > Once you have this running, the same examples should work regardless > of which router each endpoint is connected to. You can also use the > "qdstat" utility to probe the routing tables and known addresses. > "qdstat -c" will show connections, including the inter-router > connections. > > If you have any further questions or comments, please post them here. > > -Ted > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org