<property name="brokerURL" value="failover:(tcp://datafeeds.networkrail.co.uk:61619)?useExponentialBackOff=true&maxReconnectDelay=60000&reconnectDelayExponent=2.0"/>
Successfully connected to tcp://datafeeds.networkrail.co.uk:61619 | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-1
2015-11-04 13:15:25,946 | ERROR | Failed to Lookup INetAddress for URI[ nio://ec2netrailprodmaster1:61619 ] : java.net.UnknownHostException: ec2netrailprodmaster1: Name or service not known | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-2
2015-11-04 13:15:41,334 | WARN | Failed to connect to [tcp://datafeeds.networkrail.co.uk:61619] after: 10 attempt(s) continuing to retry. | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-2
It is my understanding that the back off will work as expected, but this method causes UnknownHostExceptions, after a successful connection.
Successfully connected to tcp://datafeeds.networkrail.co.uk:61619 | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-1
2015-11-04 13:15:25,946 | ERROR | Failed to Lookup INetAddress for URI[ nio://ec2netrailprodmaster1:61619 ] : java.net.UnknownHostException: ec2netrailprodmaster1: Name or service not known | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-2
2015-11-04 13:15:41,334 | WARN | Failed to connect to [tcp://datafeeds.networkrail.co.uk:61619] after: 10 attempt(s) continuing to retry. | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-2
From: Jacob Cartledge Sent: Monday, 9 November 2015 16:50 To: A gathering place for the Open Rail Data community Subject: Re: [openraildata-talk] Camel Failover Support for bridged topics |
I have a meeting tomorrow to discuss open issues - I'll ensure this one gets raised and logged. It's really easy to fix, I think.
--