Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.4.1
-
None
-
None
Description
1) Create the instances:
$ cd /home/phil/apache-activemq-5.4.1
$ bin/activemq create broker1
$ bin/activemq setup ~/.activemqrc-instance-broker1
$ ln -s activemq bin/activemq-instance-broker1
$ bin/activemq create broker2
$ bin/activemq setup ~/.activemqrc-instance-broker2
$ ln -s activemq bin/activemq-instance-broker2
2) set unique ports for the instances in their conf/activemq.xml and conf/jetty.xml files as shown below:
$ grep 16 broker[12]/conf/*.xml
broker1/conf/activemq.xml: <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
broker1/conf/jetty.xml: <property name="port" value="8161" />
broker2/conf/activemq.xml: <transportConnector name="openwire" uri="tcp://0.0.0.0:61626"/>
broker2/conf/jetty.xml: <property name="port" value="8162" />
When I try to start both brokers, I get a "Process with pid XXX is already running" message. This is due to the pid file being created in $ACTIVEMQ_HOME/data rather than the instance's $ACTIVEMQ_BASE/data directory