Installing ActiveMQ JMS Messaging System

For our next Camel example we need to install ActiveMQ to use as a JMS Messaging System.

Download ActiveMQ

Download the latest version of ActiveMQ from

To run on a Mac, I downloaded the apache-activemq-5.9.0-bin.tar.gz and copied it to /Applications/Development, where I expanded it to give: /Applications/Development/apache-activemq-5.9.0

Configure ActiveMQ

You need to set ACTIVEMQ_HOME to point to /Applications/Development/apache-activemq-5.9.0, and set PATH to include $ACTIVEMQ_HOME/bin

I have done this by editing .profile in my home directory as follows:

export ACTIVEMQ_HOME=/Applications/Development/apache-activemq-5.9.0

My .profile will execute every time a terminal session is started

Start ActiveMQ

Open a terminal session and execute the command

activemq restart

This will start an activemq session and display a log something like the following:”

INFO: Using java '/System/Library/Frameworks/JavaVM.framework/Home/bin/java'
INFO: Starting - inspect logfiles specified in and to get details
INFO: pidfile created : '/Applications/Development/apache-activemq-5.9.0/data/' (pid '52986')
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /Users/johndunning/.activemqrc)

INFO: Invoke the following command to create a configuration file
/Applications/Development/apache-activemq-5.9.0/bin/activemq setup [ /etc/default/activemq | /Users/johndunning/.activemqrc ]

INFO: Using java '/System/Library/Frameworks/JavaVM.framework/Home/bin/java'
ActiveMQ is running (pid '52986')

Connect to ActiveMQ Using your Browser

Open the link: http://localhost:8161/admin/index.jsp in your browser.

You will be prompted for a login:

The login and password are admin and admin

You can find this setting in the file: conf/

Once you are logged in you will see a screen something like this:



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s