I am using AMQ 5.9.1. I have been following this blog for setting up a master/slave AMQ cluster on same machine using same kahadb for persistence:
http://akuntamukkala.blogspot.com/2013/07/using-activemq-masterslave.html <http://akuntamukkala.blogspot.com/2013/07/using-activemq-masterslave.html> On OS X, I am able to start either broker-1 or broker-2 but not both on OS X. I have checked that the ports in use are 61616 and 61626 for broker-1 and broker-2, respectively, using the following cmds: netstat -a | grep 61616 netstat -a | grep 61626 So I know as a result that the correct activemq.xml files are being parsed for bother brokers. What am I missing? I am seeing the following consistently when i start the 2nd broker (or the 1st broker if broker-2 is already running): NextGates-MacBook-Pro:bin arbisookazian$ ./broker-2 start Starting ActiveMQ Broker... ActiveMQ Broker is already running. I have the following in broker-1 script: export ACTIVEMQ_HOME=/Users/arbisookazian/sw/activemq/master-slave-failover/apache-activemq-5.9.1 export ACTIVEMQ_BASE=$ACTIVEMQ_HOME/cluster/*broker-1* export ACTIVEMQ_CONF=$ACTIVEMQ_BASE/conf ${ACTIVEMQ_HOME}/bin/macosx/activemq "$@" I have the following in broker-2 script: export ACTIVEMQ_HOME=/Users/arbisookazian/sw/activemq/master-slave-failover/apache-activemq-5.9.1 export ACTIVEMQ_BASE=$ACTIVEMQ_HOME/cluster/*broker-2* export ACTIVEMQ_CONF=$ACTIVEMQ_BASE/conf ${ACTIVEMQ_HOME}/bin/macosx/activemq "$@" I have the following in activemq.xml for broker-1: <transportConnectors> <transportConnector name="openwire" uri="tcp://0.0.0.0:<b>61616*?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> </transportConnectors> I have the following in activemq.xml for broker-2: <transportConnectors> <transportConnector name="openwire" uri="tcp://0.0.0.0:<b>61626*?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> </transportConnectors> I doesn't seem to make a difference if I remove the comments above or not. -- View this message in context: http://activemq.2283324.n4.nabble.com/starting-two-instances-of-ActiveMQ-on-same-machine-with-kahadb-master-slave-tp4683769.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
