This documentation is for WSO2 CEP 2.1.0. View the home page of the latest release.

Installing Apache ActiveMQ on Linux

In order to enable the JMS transport and try out JMS samples, the ActiveMQ client libraries must be installed. In case any other JMS provider is used (e.g. Apache Qpid), install any necessary libraries and/or components.

Note

Refer to Installation Prerequisites for the list of applications necessary to install and work with WSO2 products you plan to use.

Follow the instructions below to install Apache ActiveMQ on Linux.

Step 1. Download Apache ActiveMQ

Type the following command:

wget http://www.apache.org/dist//activemq/apache-activemq/5.5.0/apache-activemq-5.5.0-bin.tar.gz

Apache ActiveMQ download

Step 2. Extract the Archive

1. Extract the distribution archive, i.e. apache-activemq-5.5.0-bin.tar.gz to the directory you wish to install Apache ActiveMQ. These instructions assume you chose /opt. The subdirectory apache-activemq-5.5.0 will be created from the archive.

tar -zxvf apache-activemq-5.5.0-bin.tar.gz

Extract archive

2. If the ActiveMQ start-up script is not executable, change its permissions:

chmod 755 activemq

Step 3. Run Apache ActiveMQ

Run ActiveMQ from a command shell:

sudo sh activemq start

Extract archive

Step 4. Testing the Installation

ActiveMQ's default port is 61616. From another window, run netstat and search for port 61616.

netstat -an|grep 61616

Extract archive

The port should be opened and LISTEN on 61616.

Step 5. Monitoring ActiveMQ

There are various ways to monitor ActiveMQ. If you are on version 4.2 or later of ActiveMQ, you can then monitor ActiveMQ, using the Web Console by pointing your browser at:

http://localhost:8161/admin

Extract archive

Or you can use the JMX support to view the running state of ActiveMQ.


Copyright © WSO2 Inc. 2005-2014