On Windows the command to start a Fuse Message Broker broker is simple. It allows you to start a broker instance as a foreground process using the specified configuration.
The Unix start command provides more options. See Starting a Broker on Unix/Linux/OS X.
On Windows, the activemq tool to starts an instance of Fuse Message Broker in the foreground. The syntax for the command is shown in Example 3.4.
Example 3.4. Syntax for Starting a Broker on Windows
activemq
{[xbean:file:confURI
[?validate=
{[true] | [false]}
]
] | [broker:brokerURI
] | [properties:propURI
]}
![]() | Tip |
---|---|
For a full description of the parameters see activemq. |
For example, to start a broker using the default broker configuration, enter:
c:\fmb>
activemq xbean:file:conf/activemq.xml
You can optionally disable schema validation of the configuration file using the
validate
flag, as follows:
c:\fmb>
activemq xbean:file:conf/activemq.xml?validate=false
On Windows the activemq command does not provide a mechanism for launching a broker instance as a background process. To start a broker in the background you can either:
install the broker instance as a Windows service. See Installing Fuse Message Broker as a Windows Service.
Use the Windows start command to spawn the broker in a new command window.