Chapter 7. Starting a Broker
Abstract
Overview
- console mode—the broker starts up as a foreground process and presents the user with a command shell
- daemon mode—the broker starts up as a background process that can be manged using a remote console or the provided command line tools
InstallDir/etc/activemq.xml configuration file. The configuration uses values loaded from the InstallDir/etc/system.properties file and the InstallDir/etc/io.fabric8.mq.fabric.server-broker.cfg file.
Starting in console mode
Table 7.1. Start up Commands for Console Mode
Windows | bin\amq.bat |
Linux/UNIX | bin/amq |
Example 7.1. Broker Console
_ ____ __ __ ____
| | _ \ /\ | \/ |/ __ \
| | |_) | ___ ___ ___ / \ ______| \ / | | | |
_ | | _ < / _ \/ __/ __| / /\ \______| |\/| | | | |
| |__| | |_) | (_) \__ \__ \ / ____ \ | | | | |__| |
\____/|____/ \___/|___/___/ /_/ \_\ |_| |_|\___\_\
JBoss A-MQ (6.3.0.redhat-187)
http://www.redhat.com/products/jbossenterprisemiddleware/amq/
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Open a browser to http://localhost:8181 to access the management console
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown JBoss A-MQ.
JBossA-MQ:karaf@root>./bin/karaf, which is executing the Karaf console; and the child process, which is executing the Karaf server in a java JVM. The shutdown behaviour remains the same as before, however. That is, you can shut down the server from the console using either Ctrl-D or osgi:shutdown, which kills both processes.
Starting in daemon mode
Table 7.2. Start up Commands for Daemon Mode
Windows | bin\start.bat |
Linux/UNIX | bin/start |
Starting a broker in a fabric
- using the console of one of the other broker's in the fabricIf one of the brokers in the fabric is running in console mode you an use the fabric:container-start command to start any of the other brokers in the fabric. The command requires that you supply the container name used when creating the broker in the fabric. For example to start a broker named
fabric-broker3you woul duse the command shown in Example 7.2, “Starting a Broker in a Fabric”.Example 7.2. Starting a Broker in a Fabric
JBossA-MQ:karaf@root>fabric:container-start fabric-broker3 - using the administration client of one of the broker's in the fabricIf none of the brokers are running in console mode, you can use the administration client on one of the brokers to execute the fabric:container-start command. The administration client is run using the client command in Red Hat JBoss A-MQ's
binfolder. Example 7.3, “Starting a Broker in a Fabric with the Administration Client” shows how to use the remote client to start remote broker in the fabric.Example 7.3. Starting a Broker in a Fabric with the Administration Client
bin/client fabric:container-start fabric-broker3 - using the management consoleThe management console can start and stop any of the brokers in the fabric it manages from a Web based console.For more information see Using the Management Console.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.