On Wed, 11 Jun 2014 08:51:23 +0100, spam trap
<nospam.1.friedbad...@spamgourmet.com> wrote:

>On Tue, 10 Jun 2014 11:07:43 -0400, Timothy Bish
><tabish...@gmail.com> wrote:
>
>>On 06/10/2014 06:47 AM, spam trap wrote:
>>> On Tue, 10 Jun 2014 06:06:03 -0400, Timothy Bish
>>> <tabish...@gmail.com> wrote:
>>>
>>>> On 06/10/2014 04:42 AM, spam trap wrote:
>>>>> [ActiveMQ-CPP 3.8.2]
>>>>>
>>>>> I am unsure how to configure the failover transport correctly.  We
>>>>> have maxReconnectAttempts & startupMaxReconnectAttempts set to the
>>>>> default which should mean the transport should retry to connect
>>>>> forever, yes?  However, if the broker is not available, the connection
>>>>> attempt gives up after 20 seconds (which is the setting of "timeout"
>>>>> which I believe is only for sending data, yes?)
>>>>>
>>>>> (The other connection options we are using are:
>>>>> useExponentialBackOff=false
>>>>> initialReconnectDelay=5000
>>>>> timeout=20000)
>>>>>
>>>>> Can anyone clarify this?
>>>>>
>>>>>
>>>> Please provide the complete connection URI so we can see what you are
>>>> starting from.
>>> Here's an example:
>>>
>>> failover://(tcp://localhost:61617)?useExponentialBackOff=false&initialReconnectDelay=5000&timeout=20000
>>>
>>>
>>Tested locally and it works as expected, client sits and waits for a 
>>broker indefinitely.  Recommend some additional debug on your side to 
>>see what's happening.
>
>Here's the exception message & trace:
>
>"Failover timeout of 20000 ms reached."
>FILE: activemq/core/ActiveMQConnection.cpp, LINE: 1285
>FILE: activemq/core/ActiveMQConnection.cpp, LINE: 1363
>FILE: activemq/core/ActiveMQConnection.cpp, LINE: 656
>
>It throws the exception at the highlighted line (some code omitted for
>brevity):
>
>pConnectionFactory =
>cms::ConnectionFactory::createCMSConnectionFactory(
>             brokerURI);
>pConnection = m_pConnectionFactory->createConnection();
>pConnection->setClientID(m_name);  <<-- here
>
>"m_name" is unique.
>

I can post/email you a small self-contained, complete program that
illustrates the issue if that would be of use.

Reply via email to