Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 37852 invoked from network); 21 Jun 2006 20:38:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2006 20:38:12 -0000 Received: (qmail 84819 invoked by uid 500); 21 Jun 2006 20:38:11 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 84802 invoked by uid 500); 21 Jun 2006 20:38:11 -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 84793 invoked by uid 99); 21 Jun 2006 20:38:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2006 13:38:11 -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 chirino@gmail.com designates 66.249.92.169 as permitted sender) Received: from [66.249.92.169] (HELO ug-out-1314.google.com) (66.249.92.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2006 13:38:08 -0700 Received: by ug-out-1314.google.com with SMTP id m3so113927uge for ; Wed, 21 Jun 2006 13:37:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=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; b=ubTl2p6tTl4rBad6Rk/dQ2OPbQLvh8eCXggjsAAxyQOv1QUpj1O7hvp+OSLADIQIeXpOiTifcLfosrfnkQw866qweKBM9FRMXlyS9+Il8jtO67hJsIcta6bvJCH4uf0NbJtheq4tK12/rNtqOiGoocAZDbHYynsvHUDvmRcu3K4= Received: by 10.67.93.6 with SMTP id v6mr233800ugl; Wed, 21 Jun 2006 13:37:46 -0700 (PDT) Received: by 10.66.237.18 with HTTP; Wed, 21 Jun 2006 13:37:46 -0700 (PDT) Message-ID: Date: Wed, 21 Jun 2006 16:37:46 -0400 From: "Hiram Chirino" Sender: chirino@gmail.com To: activemq-users@geronimo.apache.org Subject: Re: Discovery Fail if no Broker In-Reply-To: <4977620.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4977620.post@talk.nabble.com> X-Google-Sender-Auth: d98dfb63c89d875c X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Bo, Please refer to http://activemq.com/site/discovery-transport-reference.html I think if you use something like: discovery:(multicast://default)?maxReconnectAttempts=5 Then after 5 connect attempt failures, the connection attempt should fail. On 6/21/06, wconroy wrote: > > I would like to use discovery to try to find a broker, but if no broker is up > have it return immediately or throw an exception. How do I enable that? I > am currently using "discovery:multicast://default" on my client. > > Thanks, > > Bo > > > -- > View this message in context: http://www.nabble.com/Discovery-Fail-if-no-Broker-t1824894.html#a4977620 > Sent from the ActiveMQ - User forum at Nabble.com. > > -- Regards, Hiram Blog: http://hiramchirino.com