From users-return-20710-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Oct 05 19:14:44 2009 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 7675 invoked from network); 5 Oct 2009 19:14:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Oct 2009 19:14:43 -0000 Received: (qmail 4622 invoked by uid 500); 5 Oct 2009 19:14:43 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 4572 invoked by uid 500); 5 Oct 2009 19:14:43 -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 4562 invoked by uid 99); 5 Oct 2009 19:14:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2009 19:14:43 +0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Mon, 05 Oct 2009 19:14:32 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mut0d-000562-8g for users@activemq.apache.org; Mon, 05 Oct 2009 12:14:11 -0700 Message-ID: <25755942.post@talk.nabble.com> Date: Mon, 5 Oct 2009 12:14:11 -0700 (PDT) From: farshad To: users@activemq.apache.org Subject: Re: Distributed brokers and faiovers In-Reply-To: <36e91d9d0910050326i5478d85cv86fb1d4e48a15c05@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: teez_housh@hotmail.com References: <25716906.post@talk.nabble.com> <36e91d9d0910050326i5478d85cv86fb1d4e48a15c05@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Dejan, Thanks for the reply. On the link you sent I read: "The Failover configuration syntax allows you to specify any number of composite uris. The Failover transport randomly chooses one of the composite URI and attempts to establish a connection to it. If it does not succeed or if it subsequently fails, a new connection is established to one of the other uris in the list." So, if I have a network of 3 brokers specifed staticaly in my config file and having also specified the failover:// protocol how does ActiveMQ fail an initial connection to one broker to another? Or does it? I use an ActiveMQConnectionFactory which needs to be connected to a broker URL specifically. So, if that broker is down do I need to try a different broker myself or does ActiveMQ's failover would connect to a different broker? If so, how? Thanks, Farshad Dejan Bosanac wrote: > > Hi, > > check out failover transport > http://activemq.apache.org/failover-transport-reference.html > > Cheers > -- > Dejan Bosanac - http://twitter.com/dejanb > > Open Source Integration - http://fusesource.com/ > ActiveMQ in Action - http://www.manning.com/snyder/ > Blog - http://www.nighttale.net > > > On Fri, Oct 2, 2009 at 7:12 PM, farshad wrote: > >> >> Hi, >> >> I am new to ActiveMQ and am trying to use it in a distributed way. I >> statically define my brokers as: >> >> >> >> And >> >> >> I connect to host1 and place some messages in a queue. I want to shut >> down >> host1 and be able to be a producer and consumer of that same queue >> connecting to a different broker. Can I do that? What is the failover >> machanism? >> >> Thank you in advance >> >> -- >> View this message in context: >> http://www.nabble.com/Distributed-brokers-and-faiovers-tp25716906p25716906.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> > > > ----- > Dejan Bosanac > > Open Source Integration - http://fusesource.com/ > ActiveMQ in Action - http://www.manning.com/snyder/ > Blog - http://www.nighttale.net > -- View this message in context: http://www.nabble.com/Distributed-brokers-and-faiovers-tp25716906p25755942.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.