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.

--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.b...@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply via email to