Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 24261 invoked from network); 23 Apr 2010 10:24:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Apr 2010 10:24:34 -0000 Received: (qmail 38470 invoked by uid 500); 23 Apr 2010 10:24:33 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 38279 invoked by uid 500); 23 Apr 2010 10:24:31 -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 38271 invoked by uid 99); 23 Apr 2010 10:24:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 10:24:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 10:24:24 +0000 Received: by fg-out-1718.google.com with SMTP id e12so464964fga.14 for ; Fri, 23 Apr 2010 03:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:received:message-id:subject :from:to:content-type; bh=z1H4VMRGh4D0PGGl6T+/J5Gxob/iua/HIcVH41X5htc=; b=FLrmTG7Hd6DjUpFqda+xCyJ6NdrhIubHZVgDu726BK3HKFHrCCXYaFc40/E6PhRJei oUZQWGlZTpDFFMF12wErdODbgTFkJpT6cU6BwR1EauHOgB9yQFW6/pHX07hmCqeYXnkS ngosNUeumu2spQwJ439HEnYts1DYYnFp7c168= 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; b=ZgGvH2L84Xs0RRyH2X76yg8PH1k5xkjjs48qKjbV8jEDvv37P65JF3jcHA5JgfUosC U/Tf0BhqccrSskF5SKfaHr55S95noqr8xXRvJrq8RwXaMxldpk0D4fzVREgRM8P4mTJ9 lkC4ce8kAoVfvfGywD6aEv8xIODtCO9iY+kN4= MIME-Version: 1.0 Sender: chubrilo@gmail.com Received: by 10.239.153.205 with HTTP; Fri, 23 Apr 2010 03:24:04 -0700 (PDT) In-Reply-To: <28338986.post@talk.nabble.com> References: <28338986.post@talk.nabble.com> Date: Fri, 23 Apr 2010 12:24:04 +0200 X-Google-Sender-Auth: 82dc509f31994b46 Received: by 10.239.184.9 with SMTP id w9mr999148hbg.120.1272018244379; Fri, 23 Apr 2010 03:24:04 -0700 (PDT) Message-ID: Subject: Re: Using FailoverTransport From: Dejan Bosanac To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001485f631989aa3e80484e4d3e0 X-Virus-Checked: Checked by ClamAV on apache.org --001485f631989aa3e80484e4d3e0 Content-Type: text/plain; charset=ISO-8859-1 Hi, you the normal JMS code for that (find any JMS tutorial on the topic). The only thing that is different in failover case is broker url you use (e.g failover:(tcp://primary:61616,tcp://secondary:61616)?randomize=false) See http://activemq.apache.org/failover-transport-reference.html for more info. 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, Apr 23, 2010 at 11:32 AM, Kalpana Jalawadi < kalpana.jalawadi@gmail.com> wrote: > > Hi, > Could anybody post a code snippet for acquiring a connection & session over > a FailoverTransport. > > Thanks in advance. > -- > View this message in context: > http://old.nabble.com/Using-FailoverTransport-tp28338986p28338986.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > --001485f631989aa3e80484e4d3e0--