Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 91496 invoked from network); 21 Dec 2010 09:44:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Dec 2010 09:44:43 -0000 Received: (qmail 57875 invoked by uid 500); 21 Dec 2010 09:44:43 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57733 invoked by uid 500); 21 Dec 2010 09:44:42 -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 57723 invoked by uid 99); 21 Dec 2010 09:44:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 09:44:42 +0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chubrilo@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-ew0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 09:44:38 +0000 Received: by ewy10 with SMTP id 10so2032112ewy.32 for ; Tue, 21 Dec 2010 01:44:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=MBvhfIELqP5FrL+O8pCVLWjFUJ5Py/gJEG1Nl1rLM9U=; b=ODFWpEBvHEIOJd+r6/djJJ3zfb+h3WokZP2fiUHtEaCSYYWFnTbz2gb/cg2fVkT77m GuPHGe4GYwgVjutfniUqr8DLLrPmAJXlqjtJkkeEy/wsSXK1qFFopsq3PTgYdATdKULZ t6nIHrRiAQQUPSGU3093TyVhVqva38o02V3v8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=BCKp0qjWDaetV9ugsEeDKld6E1HsefxBa4L7hAKXb6ffS3l+Qkigsk2VRCW3MXJVNW Oza/BbxiQD0HBBQGyfUvZIhdMerZAx7RERV/vDfCldzQTu7opZnWrSi84CHsCRKJPptI SF1929WPqSBNQt3SFkgEZR+uwEhqKW0PIZkj4= MIME-Version: 1.0 Received: by 10.213.14.148 with SMTP id g20mr4543872eba.43.1292924656538; Tue, 21 Dec 2010 01:44:16 -0800 (PST) Sender: chubrilo@gmail.com Received: by 10.213.26.13 with HTTP; Tue, 21 Dec 2010 01:44:16 -0800 (PST) In-Reply-To: <1292868026191-3095911.post@n4.nabble.com> References: <1292868026191-3095911.post@n4.nabble.com> Date: Tue, 21 Dec 2010 10:44:16 +0100 X-Google-Sender-Auth: 8R0mcqKVY9UF4D6D1j8s1hmuqJ8 Message-ID: Subject: Re: FailoverTransport rebinding to master From: Dejan Bosanac To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Ken, we don't have this feature at the moment. You can raise a feature request in Jira (and take a stab at implementing it). Cheers -- Dejan Bosanac ----------------- FuseSource - The experts in open source integration and messaging. Email: dejanb@fusesource.com Web: http://fusesource.com Twitter: =A0http://twitter.com/dejanb ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Mon, Dec 20, 2010 at 7:00 PM, ken.mccracken wr= ote: > > Hi, > > I'm using the FailoverTransport via the following config: > failover:(tcp://primary:61616,tcp://secondary:61616)?randomize=3Dfalse > > My question is, if I bring up two ActiveMQ servers at primary and seconda= ry, > and they are both up, messages will be produced to the primary. =A0When t= he > primary goes down, messages will be send to the secondary. =A0When the pr= imary > comes back online, messages continue to be sent to the secondary. =A0Is t= here > a way to make it "rebind" to the primary, or check if primary is again > available every 5 minutes or so? > > The reason is that I want to use my ActiveMQ cluster in an active-active > setup with multiple hosts distributed to multiple ActiveMQs. =A0When one > ActiveMQ goes down, traffic should switch to the other; when that ActiveM= Q > is brought back online, traffic should again re-distribute. > > Should I use a different Transport? =A0Do I need to write my own to have = this > behavior? > > Thanks! > -Ken McCracken > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Failo= verTransport-rebinding-to-master-tp3095911p3095911.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >