Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 47154 invoked from network); 19 Feb 2008 03:48:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 03:48:22 -0000 Received: (qmail 86016 invoked by uid 500); 19 Feb 2008 03:48:15 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 85993 invoked by uid 500); 19 Feb 2008 03:48:15 -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 85984 invoked by uid 99); 19 Feb 2008 03:48:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 19:48:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bruce.snyder@gmail.com designates 66.249.82.239 as permitted sender) Received: from [66.249.82.239] (HELO wx-out-0506.google.com) (66.249.82.239) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 03:47:40 +0000 Received: by wx-out-0506.google.com with SMTP id s14so2144738wxc.26 for ; Mon, 18 Feb 2008 19:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=djxaar2fzLgtxTrEsL17wt7N1egMvyjrJ5rmgmtKCSs=; b=Qqc7uR0XfK0K5i3b3NhDG67ZKrKJQ28IUbx04+TwjMSR8dfgecx1WzKxaa1W4UYM2bjheGRNSxPl+Qggd9GJH5XRXt6YKgx7oXI6fJyRIjEJUC+bFqtz7Yf0wrv8oOjuA8aT71lhurYhF8Do0Joj8/of7kFyzBYXeplAqPFXah0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lE+0G8NuJJyETrT4uDEP6DNq5kv0FozGR/kHpEPzqKm4zbQLhgzHlu978+rsY1cdMUY9fe/4Js1MDkFTgibMTF3RK7gKsHeXF2zSz2rFYh/4hlT/w3ENFE1QZrLO3nwfF1D3NYEe6RACxWqHrA6jjIE38ktPtgdCfheJ0StzTaU= Received: by 10.142.255.14 with SMTP id c14mr1972159wfi.22.1203392868058; Mon, 18 Feb 2008 19:47:48 -0800 (PST) Received: by 10.142.229.19 with HTTP; Mon, 18 Feb 2008 19:47:48 -0800 (PST) Message-ID: <7b3355cb0802181947r3c254absd556248299a4f60c@mail.gmail.com> Date: Mon, 18 Feb 2008 20:47:48 -0700 From: "Bruce Snyder" To: users@activemq.apache.org Subject: Re: Network of Brokers - Broker A talking to Broker B In-Reply-To: <15510192.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <15510192.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On Feb 15, 2008 2:12 PM, wha wrote: > > Hi, > > I'm using the latest snapshot 5.1 > > I'm having some problems with a really simple setup. I want broker A to send > its messages to Broker B. > Broker A has a producer and Broker B has a consumer. > > Here's my config for broker A: > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> > > dataDirectory="${activemq.base}/data" useJmx="true" advisorySupport="false"> > > > > > > discoveryUri="multicast://default"/> > > > > > > > > > > uri="static://(tcp://10.166.163.149:61616)" dynamicOnly="true" > networkTTL="2"/> > > > > > > Here's my config for Broker B: > > > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> > > dataDirectory="${activemq.base}/data" useJmx="true" advisorySupport="false"> > > > > > > discoveryUri="multicast://default"/> > > > > > > > > > > uri="static://(tcp://10.166.163.108:61616)" dynamicOnly="true" > networkTTL="2"/> > > Disable the all transport connectors (i.e., comment them out) and remove the discoverUri from the openwire connectors. I also advise running the brokers on the same machine in order to rule out your network. In order to do this, you'll need to change the following: 1) Make sure the openwire ports for each broker are different for each broker 2) Make sure the managementContext connectorPorts are different for each broker 3) Make sure the jetty nioConnector ports are different for each broker These ports need to be unique to each broker so that you can start more than one broker on a single machine. Next, I'd suggest removing the dynamicOnly attribute until you get the broker-to-broker communication working without it. Don't add any extra options right now that you don't need beyond the networkTTL. Beyond that the network connectors look OK. After making these changes, you should be able to start a consumer pointing to one broker. Then start the producer pointing to the other broker. This is a very, very simple set up that should work without problem. I have done this many times myself with both ActiveMQ 4.x and 5.x. Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E