I've two question for ActiveMQ failover protocol.
Question 1: When I use following url with nested it doesn't connect to ActiveMQ.
failover:(tcp://192.168.1.111:61616)?nested.jms.useAsyncSend=true&initialReconnectDelay=1000&maxReconnectAttempts=-1
Question 2: Following url works fine. It also reconnect to ActiveMQ on first restart but when I shutdown ActiveMQ for second time Java program terminates and there ain't any exception.
failover:(tcp://192.168.1.111:61616)?jms.useAsyncSend=true&initialReconnectDelay=1000&maxReconnectAttempts=-1
ActiveMQ Version: 5.10.0
Reference: http://activemq.apache.org/failover-transport-reference.html