If I use the following url
-Durl='failover://(tcp://broker1:61616,tcp://broker2:61616)' I got the
following output:

r...@broker1:/opt/apache-activemq-5.3.0/example # ant topic-listener
-Durl='failover://(tcp://ppst-broker1:61616,tcp://broker2:61616)'
Buildfile: build.xml

init:

compile:

topic-listener:
     [java] 10:24:11 INFO  Successfully connected to tcp://broker1:61616
     [java] Waiting for messages...
< ... now I stop broker1 ...>
     [java] 10:24:25 WARN  Transport failed to tcp://broker1:61616 ,
attempting to automatically reconnect due to: java.io.EOFException
     [java] 10:24:25 INFO  Successfully reconnected to tcp://broker2:61616

BUILD SUCCESSFUL
Total time: 14 seconds
r...@broker2:/opt/apache-activemq-5.3.0/example #

As you can see, it does reconnect successfully, but stops working after that
:-(

-Frank-

-- 
View this message in context: 
http://old.nabble.com/Issue-in-example-with-failover-tp27824427p27833305.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to