Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

starting two instances of ActiveMQ on same machine with kahadb master/slave

$
0
0
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.

Viewing all articles
Browse latest Browse all 5648

Trending Articles