The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

jzhang (2) [Avatar] Offline
Hi, I am reading chapter 10 to try Pure Master and Slave topology. I am using AMQ 5.3.2 and set up two simple brokers on a Linux VM host. I did not do anything on the master (lab-1:61613). I added following line to slave's activemq.xml:

<masterConnector remoteURI="failover://(tcp://lab-1:61613)" userName="system" password="manager" />


<transportConnector name="openwire" uri="tcp://${}:${port}"/>

Then I started master, few sec later I started slave one. But the log from slave keep showing:

2010-07-28 11:12:52,237 | DEBUG | Connect fail to: tcp://lab-1:61613, reason: Connection refused | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task

What is the problem? Also the slave can not be shutdown using actvemq-admin command.


jzhang (2) [Avatar] Offline
Re: I need a simple example to configure Pure master and slave
I got it resolved, it needs full qualified DNS name for the master:

<masterConnector remoteURI="failover://(tcp://" userName="system" password="manager" />

12422 (2) [Avatar] Offline
I need a simple example to configure Pure master and slave. This is now deprecated
This is now deprecated. See So you can ignore paragraph 10.1.1.