Re: failover: not connecting with embedded broker.

2014-07-31 Thread Kevin Burton
AH!!! You know.. I think you're right! At least 99% of my tests now pass. But it looks like the documentation is wrong :-( http://activemq.apache.org/how-can-i-support-auto-reconnection.html Just use the following connection URI (setting the brokerURL in the ActiveMQConnectionFactory) failov

Re: failover: not connecting with embedded broker.

2014-07-31 Thread Gary Tully
you need some brackets, jms. options are not for the transport, so use failover:(tcp://,tcp://.)?jms.prefetchPolicy.all=5 On 31 July 2014 01:07, Kevin Burton wrote: > I'm trying to switch from tcp: to failover:tcp: for my connection string > so that my apps will reconnect if a failed Act

Re: failover: not connecting with embedded broker.

2014-07-30 Thread Kevin Burton
here it is.. pretty basic config really. http://pastebin.com/tZ4bU0JF On Wed, Jul 30, 2014 at 5:11 PM, Timothy Bish wrote: > On 07/30/2014 08:07 PM, Kevin Burton wrote: > >> I'm trying to switch from tcp: to failover:tcp: for my connection string >> so that my apps will reconnect if a failed

Re: failover: not connecting with embedded broker.

2014-07-30 Thread Timothy Bish
On 07/30/2014 08:07 PM, Kevin Burton wrote: I'm trying to switch from tcp: to failover:tcp: for my connection string so that my apps will reconnect if a failed ActiveMQ server restarts. All my code / tests work fine with a connection string of: tcp://127.0.0.1:16161 (note I changed the defaul

failover: not connecting with embedded broker.

2014-07-30 Thread Kevin Burton
I'm trying to switch from tcp: to failover:tcp: for my connection string so that my apps will reconnect if a failed ActiveMQ server restarts. All my code / tests work fine with a connection string of: tcp://127.0.0.1:16161 (note I changed the default port) … but if I change it to: failover:tc