Thanks  Dejan for the clarification. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dejan
Bosanac
Sent: Wednesday, June 18, 2008 12:30 AM
To: users@activemq.apache.org
Subject: Re: maxReconnectAttempts option

Hi,

a default value of 0 means that client will try to connect indefinitely.
If you want to change this, you can set some finite value with the
maxReconnectAttempts parameter.

Regards
--
Dejan Bosanac
www.scriptinginjava.net

On Wed, Jun 18, 2008 at 9:09 AM, Suchitha Koneru (sukoneru) <
[EMAIL PROTECTED]> wrote:

> Hello Active MQ users ,
>           What is  the significance of the option 
> "maxReconnectAttempts"  in regard to failover transport ?
> The broker url is failover/:tcp/://ipAddress/:portNumber.  The option 
> "maxReconnectAttempts" is not configured.
> When the broker went down, the clients repeatedly tried connecting to 
> the broker , which is evident from the logs below.
> How is this possible when maxReconnectAttempts has a default value of 
> 0 ?
>
> thanks,
> suchitha.
>
> 2008-06-17 18:30:20,443 [ActiveMQ Task] DEBUG 
> failover.FailoverTransport
> - Connect fail to: tcp://171.69.154.8:78594, reason:
> java.net.ConnectException: Connection refused: connect
> 2008-06-17 18:30:20,443 [ActiveMQ Task] DEBUG 
> failover.FailoverTransport
> - Waiting 30000 ms before attempting connection.
> 2008-06-17 18:30:20,740 [ActiveMQ Task] DEBUG 
> failover.FailoverTransport
> - Connect fail to: tcp://171.69.154.8:78594, reason:
> java.net.ConnectException: Connection refused: connect
> 2008-06-17 18:30:20,740 [ActiveMQ Task] DEBUG 
> failover.FailoverTransport
> - Waiting 30000 ms before attempting connection.
> 2008-06-17 18:30:20,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:21,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:22,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:23,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:24,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:25,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:26,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:27,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:28,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:28,896 [http-8991-Processor23] INFO 
> servlets.ServerStatusPolling - In ServerStatusPolling
> 2008-06-17 18:30:29,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:30,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:31,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:32,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:33,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:34,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:35,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:36,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:37,740 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:38,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:39,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:40,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:41,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:42,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:43,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:44,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:45,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:46,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:47,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:48,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.
> 2008-06-17 18:30:49,741 [http-8991-Processor24] DEBUG 
> failover.FailoverTransport - Waiting for transport to reconnect.4
>

Reply via email to