Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 42172 invoked from network); 10 May 2006 11:48:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2006 11:48:49 -0000 Received: (qmail 40988 invoked by uid 500); 10 May 2006 11:48:49 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 40954 invoked by uid 500); 10 May 2006 11:48:48 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 40938 invoked by uid 99); 10 May 2006 11:48:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 04:48:48 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of xleyba@gmail.com designates 64.233.162.192 as permitted sender) Received: from [64.233.162.192] (HELO nz-out-0102.google.com) (64.233.162.192) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 04:48:47 -0700 Received: by nz-out-0102.google.com with SMTP id q3so1793236nzb for ; Wed, 10 May 2006 04:48:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nDex9xkv4Kq2yHcmvqDHeoYeABjeBqKRhDNsLsIQY0XD2ZCnhRbOq6NuynWMpBFPFwyvs4V/RWVER+qVMOkO9zsd0kfqsjnHUMvPz11Niv41OmWrTF59FCR9c69rmxb6PLjJ8/h9cYbD7Bulsfuhnde8oCHK2zJxVzmzQ4uY1tU= Received: by 10.65.203.12 with SMTP id f12mr278081qbq; Wed, 10 May 2006 04:48:24 -0700 (PDT) Received: by 10.65.251.10 with HTTP; Wed, 10 May 2006 04:48:24 -0700 (PDT) Message-ID: <933f2a180605100448q7cbe0e44i7096c75bc4422561@mail.gmail.com> Date: Wed, 10 May 2006 13:48:24 +0200 From: "Javier Leyba" To: activemq-users@geronimo.apache.org Subject: Re: Network of brokers In-Reply-To: <4302296.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4302296.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 5/9/06, Naby wrote: > > Hi. > > How must a network of brokers be configured? I found different examples f= or > it. > For example i have two brokers: A and B > What is the difference between > > > > and > > failover=3D"true"/> > > ? > Hi I'm not expert but I could share my experience and may be from activemq team could make a correction if I do a mistake. You need to configure in this way: failover=3D"true"/> I mean, the first data is the output port of the broker you are configuring and the others are server to wich you one to connect and its transport ports (because brokers receive data from transport) > And must the two brokers both be written in the client conf like this: > > failover:tcp://A:62626,tcp://B:62627 > You must list in client al servers you want to connect with its transport p= orts. In this way, client will try to connect randomly (as far as I remember) but you can force to assure to connect in the order you wrtie them. > > If the brokers should be started on the same computer with different port= s > do i need run only one activemq.(sh or bat) ti start the brokers or must = i > run 2 brokers in different directories? > AFAIK, two brokers in different directories or at least with different journals. Also, if you are using persistence in DD, they should use different DB's. Hope this helps and sorry if I did a mistake with my explanation -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar