Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61DDB7F2A for ; Thu, 11 Aug 2011 09:43:50 +0000 (UTC) Received: (qmail 57988 invoked by uid 500); 11 Aug 2011 09:43:49 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57902 invoked by uid 500); 11 Aug 2011 09:43:45 -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 57816 invoked by uid 99); 11 Aug 2011 09:43:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 09:43:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.35.219.98] (HELO gwstu.uhi.ac.uk) (194.35.219.98) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 09:43:36 +0000 Received: from sgarbh.smo.uhi.ac.uk ([194.35.194.47]) by gwstu.uhi.ac.uk with ESMTP; Thu, 11 Aug 2011 10:42:42 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: failover startupMaxReconnectAttempts doesn't do anything From: Alistair Young In-Reply-To: <797DE1C4-591D-4EAA-A42E-01A2E25C2C3B@uhi.ac.uk> Date: Thu, 11 Aug 2011 10:42:45 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <797DE1C4-591D-4EAA-A42E-01A2E25C2C3B@uhi.ac.uk> To: users@activemq.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org found this: http://comments.gmane.org/gmane.comp.java.activemq.user/30654 which suggested this: = failover://(tcp://localhost:61617)?startupMaxReconnectAttempts=3D1&initial= ReconnectDelay=3D10&maxReconnectAttempts=3D2&maxReconnectDelay=3D10 which causes this: javax.jms.JMSException: Could not create Transport. Reason: = java.lang.IllegalArgumentException: Invalid connect parameters: = {startupMaxReconnectAttempts=3D1} Alistair --=20 mov eax,1 mov ebx,0 int 80h On 11 Aug 2011, at 10:33, Alistair Young wrote: > If I try to connect to a dead broker: >=20 > failover:tcp://localhost:61617 >=20 > it blocks forever on: >=20 > ActiveMQConnectionFactory connectionFactory::setClientID >=20 > if I force it to not block: >=20 > = failover:tcp://localhost:61617?startupMaxReconnectAttempts=3D1&initialReco= nnectDelay=3D10 >=20 > it still blocks. >=20 > Am I missing something? >=20 > thanks, >=20 > Alistair >=20 > --=20 > mov eax,1 > mov ebx,0 > int 80h >=20 >=20 >=20 >=20