Red Hat DocumentationFuse Message BrokerToggle FramesPrintFeedback

Installing a Broker as a Windows Service

In this tutorial you will install a Fuse Message Broker instance as a Windows service.

Goals

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

Prerequisites

This tutorial requires that you have Fuse Message Broker installed on a Windows computer to which you have administrative privileges.

Procedure

To install Fuse Message Broker as a Windows service:

  1. Open InstallDir\bin\win32\wrapper.conf in a text editor.

    The wrapper.conf file configures the Java Wrapper Service that Fuse Message Broker uses to create a Windows service.

  2. Change the line containing set.default.ACTIVEMQ_HOME=../.. to

    set.default.ACTIVEMQ_HOME=InstallDir

    This tells the wrapper where the Fuse Message Broker installation is located so it can find the required libraries.

  3. Change the line containing set.default.ACTIVEMQ_BASE=../.. to

    set.default.ACTIVEMQ_BASE=InstallDir

    This tells the wrapper where to find the configuration and data files for the broker instance being used for the service.

  4. Save the file.

  5. Open a command prompt.

  6. Change to the InstallDir\bin\win32 directory.

  7. Install the broker as a Windows service by executing the InstallService command.

    You will see a message similar to:

    C:\fmq\bin\win32> InstallService
    wrapper  | ActiveMQ installed.
  8. From the Windows Start menu select Start|Control Panel|Administrative Tools|Services.

    The Services window opens.

  9. Double click ActiveMQ from the list of services.

    The ActiveMQ Properties window opens.

  10. Specify that the service will start up when you login by selecting Automatic from the Startup Type drop-down list.

  11. Click OK.

  12. Open the context menu for the ActiveMQ entry in the service list.

  13. Select Start to start the broker.

Further steps

You can stop the broker service by selecting Stop in the Service window's context menu.

To uninstall the broker as a Windows service use the UninstallService in the InstallDir\bin\win32 directory.

More information

For details see:

????
Comments powered by Disqus