activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: ActiveMq-Cpp soConnectTimeout not working
Date Wed, 04 Nov 2009 19:46:58 GMT
On Wed, 2009-11-04 at 08:50 -0800, bpmuser wrote:
> Hello,
> 
> I'm having an issue with timeouts when I try to connect to a non-existing
> server.  At the moment my problem simply blocks until I kill it.  I've tried
> using:
> 
> failover:(tcp://127.0.0.1:61616?soConnectTimeout=1)

The failover transport is going to keep trying to reconnect here even if
the soConnectTimeout causes the attempt to connect to fail.  Have you
tried without the failover transport in the mix to see if
soConnectTimeout is working?  

tcp://127.0.0.1:61616?soConnectTimeout=1

If you are looking for a way to have the connection fail when using the
Failover transport then you'd probably want to set the
maxReconnectAttempts value on the Failover transport as follows.

failover:(tcp://127.0.0.1:61616?soConnectTimeout=1)?maxReconnectAttempts=50

Regards
Tim.

> 
> but the program still blocks.  Am I using it wrong?
> 
> Thanks,
> Brian!
-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/




Mime
View raw message