From dev-return-9969-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Mon Apr 07 13:35:36 2008 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 31613 invoked from network); 7 Apr 2008 13:35:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Apr 2008 13:35:36 -0000 Received: (qmail 84135 invoked by uid 500); 7 Apr 2008 13:35:36 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 84111 invoked by uid 500); 7 Apr 2008 13:35:36 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 84102 invoked by uid 99); 7 Apr 2008 13:35:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2008 06:35:36 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chirino@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2008 13:34:52 +0000 Received: by wa-out-1112.google.com with SMTP id k22so1268162waf.0 for ; Mon, 07 Apr 2008 06:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=OY1VdD8jbPzchCL2drLoL3lpfNFRxR9W/xb6mLrjhJg=; b=npk/Q/uis8su5nR9Jf3r8EXVvaCINdVa0gKRIxABQ3u2jHol78bLI2F9NRNycRrsrHnglPK5oFqpmhifmShlOJoPYd2JaimIRQStT7+VLdMqWBYbCKKt4cfhZjsNq5BomCHdtm87IzZw8Latr0jl6K1sq3Ms5GP3KjxqHDPKuD8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=D3oibKRC83Ch556JIodTseGBnytTGFJEPXOulTAfKBlDS8kwGfUhRHeAby1HzCLHnt2KKKQnXqOeR/2pa2U3cTYQC7JEz3eVi7uwMSBBYbZr/kFirQA9ZA1/eOfpTVDS65hT1nfOzaZ50x8AV22VG/0Y5oL0uDfkaw1pvLMdgaM= Received: by 10.114.153.2 with SMTP id a2mr2853403wae.198.1207575303702; Mon, 07 Apr 2008 06:35:03 -0700 (PDT) Received: by 10.114.160.2 with HTTP; Mon, 7 Apr 2008 06:35:03 -0700 (PDT) Message-ID: Date: Mon, 7 Apr 2008 09:35:03 -0400 From: "Hiram Chirino" Sender: chirino@gmail.com To: dev@activemq.apache.org Subject: Re: ActiveMQ connection failover suggesstions In-Reply-To: <16349666.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <16349666.post@talk.nabble.com> X-Google-Sender-Auth: 2f37c2d9c615ca05 X-Virus-Checked: Checked by ClamAV on apache.org Use the failover:// connection URI see: http://activemq.apache.org/failover-transport-reference.html On Fri, Mar 28, 2008 at 9:23 AM, markl16 wrote: > > Hi Guys, > > Just a question about the standard practice with failover. > I am currently testing AciveMQ 5 reading and writing TextMessages to > numerous queues with no problem as well as using a messageListner. > Now at the moment if my activeMQ connection throws an exception as the > connection is closed or a message cant be delivered due to the session being > closed my application has no way of reconnecting the session. I was just > thinking of trying to reconnect to the queue if an exception is thrown from > within a catch block or is there a better way of doing this?? > > Perhaps is there a way to prob a queue to see if it is active without having > to write to it or connect to it? > > best > Mark > -- > View this message in context: http://www.nabble.com/ActiveMQ-connection-failover-suggesstions-tp16349666s2354p16349666.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > > -- Regards, Hiram Blog: http://hiramchirino.com Open Source SOA http://open.iona.com