Red Hat DocumentationFuse Message BrokerToggle FramesPrintFeedback

Creating a Broker Instance

This tutorial walks you through the process of creating a new Fuse Message Broker instance using the activemq-admin command.

Goals

In this tutorial you will:

  • Create a new Fuse Message Broker configuration file.

  • Edit the default configuration for you broker.

  • Create a new Fuse Message Broker instance using the configuration file.

Prerequisites

This tutorial requires that you have Fuse Message Broker installed into a folder that you have read/write access.

Procedure

To create a new broker instance:

  1. Copy the default Fuse Message Broker configuration file from InstallDir/conf/activemq.xml to InstallDir/conf/activemq-tutorial.xml.

  2. Open InstallDir/conf/activemq-tutorial.xml in an XML editor.

  3. Locate the following line:

    <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
  4. Change the line as follows:

    <transportConnector name="openwire" uri="tcp://0.0.0.0:61600"/>
  5. Save the file.

  6. Open a command prompt at InstallDir.

  7. Enter the following command:

    Windows
    bin\activemq-admin.bat create --amqconf conf\activemq-tutorial.xml c:\tutorial
    *nix
    bin/activemq-admin create --amqconf conf/activemq-tutorial.xml ~/tutorial

Results

The activemq-admin create command creates a new instance of Fuse Message Broker in the specified location. To do this it creates a new directory containing the following:

  • bin—scripts to start the broker

    • tutorial.bat

    • tutorial

  • conf—configuration files for the broker

    • activemq.xml

    • broker.ts

    • credentials.properties

    • jetty.xml

    • broker.ks

    • camel.xml

    • jetty-realm.properties

    • log4j.properties

The --amqconf parameter specifies the Fuse Message Broker configuration file to use for the new broker instance.

More information

For details see:

Comments powered by Disqus