From activemq-users-return-2501-apmail-geronimo-activemq-users-archive=geronimo.apache.org@geronimo.apache.org Tue Jul 04 08:12:05 2006 Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 19598 invoked from network); 4 Jul 2006 08:12:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jul 2006 08:12:05 -0000 Received: (qmail 12029 invoked by uid 500); 4 Jul 2006 08:12:05 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 11861 invoked by uid 500); 4 Jul 2006 08:12: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 11851 invoked by uid 99); 4 Jul 2006 08:12:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2006 01:12: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.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2006 01:12:03 -0700 Received: by nf-out-0910.google.com with SMTP id p77so873715nfc for ; Tue, 04 Jul 2006 01:11: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=ctq6TgQguJddQ8UwJhiHZhiJQZntLweT7RavH+CEqocv2lAK0IpH2cDgrhLGhwVMkTMRNnBfp/n1zCRSkxYe6QwP1WzcYBbGdHg18mXhF15zWKgeLAIG5X0PwsPiyk/Lf35iPWdaAwQrye880PAXnK/S1VkwCfefPRZre1RtTFo= Received: by 10.48.229.20 with SMTP id b20mr3075338nfh; Tue, 04 Jul 2006 01:11:42 -0700 (PDT) Received: by 10.66.224.1 with HTTP; Tue, 4 Jul 2006 01:11:42 -0700 (PDT) Message-ID: Date: Tue, 4 Jul 2006 09:11:42 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Automatically reconnect if broker is down In-Reply-To: <5163248.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44A4D5A3.7020203@gmail.com> <5161621.post@talk.nabble.com> <5162809.post@talk.nabble.com> <5162976.post@talk.nabble.com> <5163248.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 So it looks like your problem could be that you have a demand forwarding network among brokers and when the client tries to reconnect it thinks its already got a connection from that client (from the original broker) and so its rejecting the connection via a duplicate Client ID exception. I wonder if you increase the initialReconnectDelay to something like 1000 or 2000 does that help? It sounds like a timing bug though. I wonder if removing the network connector (commenting out the in the activemq.xml files) would be a temporary workaround. On 7/4/06, maquanjun wrote: > > The following is the command I excuted ,and when I stop the server107 ,t= his > consumertool stopped at once > > C:\jdk1.5\bin\java -classpath > "C:\work\test\activemqtest\classes;C:\work\test\activemqtest\lib\activeio= -core-3.0-beta3.jar;C:\work\test\activemqtest\lib\activemq-console-4.0.1.ja= r;C:\work\test\activemqtest\lib\activemq-core-4.0.1.jar;C:\work\test\active= mqtest\lib\activemq-optional-4.0.1.jar;C:\work\test\activemqtest\lib\incuba= tor-activemq-4.0.1.jar;C:\work\test\activemqtest\lib\backport-util-concurre= nt-2.1.jar;C:\work\test\activemqtest\lib\commons-logging-1.0.4.jar;C:\work\= test\activemqtest\lib\geronimo-j2ee-management_1.0_spec-1.0.jar;C:\work\tes= t\activemqtest\lib\geronimo-jms_1.1_spec-1.0.jar;C:\work\test\activemqtest\= lib\mx4j-2.1.1.jar;C:\javalib\apache\log4j\log4j-1.2.13.jar;C:\jdk1.5\lib\j= console.jar;C:\jdk1.5\lib\tools.jar;C:\jdk1.5\lib\htmlconverter.jar;C:\jdk1= .5\lib\dt.jar;C:\jdk1.5\jre\lib\jsse.jar;C:\jdk1.5\jre\lib\im\indicim.jar;C= :\jdk1.5\jre\lib\im\thaiim.jar;C:\jdk1.5\jre\lib\jce.jar;C:\jdk1.5\jre\lib\= deploy.jar;C:\jdk1.5\jre\lib\javaws.jar;C:\jdk1.5\jre\lib\charsets.jar;C:\j= dk1.5\jre\lib\rt.jar;C:\jdk1.5\jre\lib\ext\dnsns.jar;C:\jdk1.5\jre\lib\ext\= sunpkcs11.jar;C:\jdk1.5\jre\lib\ext\localedata.jar;C:\jdk1.5\jre\lib\ext\su= njce_provider.jar;C:\jdk1.5\jre\lib\plugin.jar" > org.apache.activemq.tool.ConsumerTool > failover:(tcp://server107:61616,tcp://server108:61616,tcp://server109:616= 16)?initialReconnectDelay=3D100 > false > Connecting to URL: > failover:(tcp://server107:61616,tcp://server108:61616,tcp://server109:616= 16)?initialReconnectDelay=3D100 > Consuming queue: TOOL.DEFAULT > Using non-durable subscription > > -- > View this message in context: http://www.nabble.com/Automatically-reconne= ct-if-broker-is-down-tf1871778.html#a5163248 > Sent from the ActiveMQ - User forum at Nabble.com. > > --=20 James ------- http://radio.weblogs.com/0112098/