ActiveMQ Configuration

Applies to ReadyAPI 3.57, last modified on December 20, 2024

This topic describes how to install and configure ActiveMQ on your computer.

Installation

More details on the installation procedure are available at the ActiveMQ site.

  1. Download the latest ActiveMQ release:

    http://activemq.apache.org/download.html

  2. Extract the files from the archive and run the activemq file by using the command line, for example:

    activemq.bat start
  1. Download the appropriate archive:

    http://activemq.apache.org/download.html

  2. Unpack the files.

    cd /home/user/activemq

    tar zxvf activemq-x.x.x-bin.tar.gz
  3. Find the ActiveMQ installation directory and open the bin directory.

    The ActiveMQ Linux installation

    Click the image to enlarge it.

  4. Open the console and run the following command:

    ./activemq start

You can perform the same installation procedure as on Linux. Alternatively, you can use the Homebrew package manager.

To install ActiveMQ by using the Homebrew package manager:

  1. Open the console and run the following command.

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. In the Homebrew package manager, run the following command to install ActiveMQ:

    brew install apache-activemq
  3. Find the ActiveMQ installation directory and open the bin directory.

    JMS Testing: The ActiveMQ installation on macOS

    Click the image to enlarge it.

  4. Open the console and run the following command:

    ./activemq start

ActiveMQ is installed to the following folder: /usr/local/Cellar/apache-activemq/x.x.x/.

Running ActiveMQ as a Service

You may want to run ActiveMQ as a service. Services start when you load your system and run in the background. If ActiveMQ is not running, you will have to start it before running JMS tests.

The Windows distribution includes a batch file you can use to install ActiveMQ as a service.

The bin directory in Windows
  1. Depending on your operating system type (32-bit or 64-bit), go to the <ActiveMQ>/bin/win32 or <ActiveMQ>/bin/win64. The folder contains the wrapper.conf file that you can use to configure the service if it is needed.

    The installation script in Linux
  2. Right-click the InstallService.bat file and select Run as administrator.

    The InstallService.bat file context menu
  3. For more information on running ActiveMQ as a service, see the ActiveMQ site.

The Linux distribution includes an init script used to run ActiveMQ as a service. The script files are in one of the subfolder of the bin directory. Select the file appropriate for your system.

The folder contains the wrapper.conf file that you can use to configure the service if it is needed.

The macOS distribution includes an init script used to run ActiveMQ as a service. The script files are in the <ActiveMQ>/bin/macosx folder.

The folder contains the wrapper.conf file that you can use to configure the service if it is needed.

The bin directory in macOS

Click the image to enlarge it.

Additional Information

The ActiveMQ site provides additional information on using ActiveMQ as a service:

See Also

WebSphereMQ Configuration
Installing JMS Providers

Highlight search results