Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2975

New shell scripts doesn't work well with multiple broker instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.4.1
    • 5.4.2
    • 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

      Attachments

        Activity

          People

            dejanb Dejan Bosanac
            dejanb Dejan Bosanac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: