The Windows Fuse Message Broker administrative tool uses four environment variables to determine where to locate configuration files, runtime libraries, and data files. In addition, it requires that your Java environment is properly set up.
Optionally, you may also want to add the administrative tool to the shell's path so that you can use the tool from anywhere.
Table 1.1 describes the environment variables used by the administration tool on Windows platforms.
Table 1.1. Windows Administration Tool Environment Variables
Variable | Description |
---|---|
ACTIVEMQ_HOME
| Specifies the directory where Fuse Message Broker is installed. |
ACTIVEMQ_BASE
| Specifies the directory containing files associated with the current broker
instance. Default value is the value of ACTIVEMQ_HOME . |
ACTIVEMQ_CLASSPATH
| Specifies the classpath used by the current broker instance. |
SSL_OPTS
| Specifies Java properties required to support SSL/TLS protocols. See Fuse Message Broker Security Guide for details. |
You must set the JAVA_HOME
environment variable to the location of the
Java installation you want to use for running Fuse Message Broker.
Example 1.1 shows a sample script for setting up the administration tool's environment.
Example 1.1. Sample Windows Environment Script
@echo off set ACTIVEMQ_HOME=ActiveMQInstallDir
set ACTIVEMQ_BASE=BrokerInstanceDir
set PATH=%PATH%;%ACTIVEMQ_HOME%\bin REM Configure Java set JAVA_HOME=JavaInstallDir
set PATH=%JAVA_HOME%\bin;%PATH% set ACTIVEMQ_CLASSPATH=%ACTIVEMQ_HOME%\lib\optional\activemq-optional-5.5.1-fuse-00-xx.jar echo Setting Apache ActiveMQ 5.5 environment
This sample script sets JAVA_HOME
as well as the Fuse Message Broker specific
environment variables. In addition, it adds the
activemq-optional-5.5.1-fuse-00-xx.jar
JAR file to your Fuse Message Broker classpath
so that the optional feature of the broker are available.