In this tutorial you will:
configure the Java Wrapper Service for your system
install a broker instance as a Windows service
configure the broker's service to start up automatically
This tutorial requires that you have Fuse Message Broker installed on a Windows computer to which you have administrative privileges.
To install Fuse Message Broker as a Windows service:
Open
in a text editor.InstallDir\bin\win32\wrapper.confThe
wrapper.conffile configures the Java Wrapper Service that Fuse Message Broker uses to create a Windows service.Change the line containing
set.default.ACTIVEMQ_HOME=../..toset.default.ACTIVEMQ_HOME=
InstallDirThis tells the wrapper where the Fuse Message Broker installation is located so it can find the required libraries.
Change the line containing
set.default.ACTIVEMQ_BASE=../..toset.default.ACTIVEMQ_BASE=
InstallDirThis tells the wrapper where to find the configuration and data files for the broker instance being used for the service.
Save the file.
Open a command prompt.
Change to the
directory.InstallDir\bin\win32Install the broker as a Windows service by executing the InstallService command.
You will see a message similar to:
C:\fmq\bin\win32>InstallServicewrapper | ActiveMQ installed.From the Windows menu select |||.
The Services window opens.
Double click ActiveMQ from the list of services.
The ActiveMQ Properties window opens.
Specify that the service will start up when you login by selecting Automatic from the Startup Type drop-down list.
Click .
Open the context menu for the ActiveMQ entry in the service list.
Select to start the broker.
You can stop the broker service by selecting in the Service window's context menu.
To uninstall the broker as a Windows service use the
UninstallService in the
directory.InstallDir\bin\win32







