Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 50421 invoked from network); 1 Aug 2006 13:21:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 13:21:05 -0000 Received: (qmail 73414 invoked by uid 500); 1 Aug 2006 13:21:04 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 73393 invoked by uid 500); 1 Aug 2006 13:21:04 -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 73384 invoked by uid 99); 1 Aug 2006 13:21:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 06:21:04 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 64.233.184.237 as permitted sender) Received: from [64.233.184.237] (HELO wr-out-0506.google.com) (64.233.184.237) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 06:21:03 -0700 Received: by wr-out-0506.google.com with SMTP id i2so402657wra for ; Tue, 01 Aug 2006 06:20:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tm+Ig9huMBwboD/W750W6ZhXWqRRYxDZpX6Y4yoNPWUnwNvYWiWpUy3codwB8flCfceUTH++ePp0jC8Dd8VDoGwmIx7hGAiwDaOmPhsYJ/AADGxtFjEhIFANzYqpuY9egsT9qBkyhC0g9pq7+YSoU9rn4ZDAmv9QnEf0PUhxsEE= Received: by 10.78.164.13 with SMTP id m13mr269777hue; Tue, 01 Aug 2006 06:20:42 -0700 (PDT) Received: by 10.78.174.8 with HTTP; Tue, 1 Aug 2006 06:20:41 -0700 (PDT) Message-ID: Date: Tue, 1 Aug 2006 14:20:41 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: No Exception When All Servers in Failover Fail In-Reply-To: <5593990.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: <5593990.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/1/06, SndMndBdy wrote: > > Hi, > > When a client listens on a TCP transport for messages, it receives a > java.net.SocketException when the server goes down. When listening on a > failover transport to two TCP transports (ie > "failover://(tcp://serverA:61616,tcp://serverB:61616)?randomize=false"), > even if both servers go down, no exception is thrown to the client. Is this > the intended behavior? Yes. You can also add a TransportListener to an ActiveMQConnection to know when exceptions occur or when the transport is suspended/resumed > If so, is there any way for me to have the client > receive an exception if all of the servers in a failover transport go down? Not easily no. You could just make the transport fail after connecting N times to all available servers - that would do what you need? If its purely informational notifications you are after a little refactoring of the FailoverTransport could generate events to indicate all servers are temporarily unavailable. -- James ------- http://radio.weblogs.com/0112098/