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 activemq.apache.org
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 export PATH=$PATH:$ACTIVEMQ_HOME/bin
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 logging.properties and log4j.properties to get details INFO: pidfile created : '/Applications/Development/apache-activemq-5.9.0/data/activemq-JD-iMac-2010.local.pid' (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/users.properties
Once you are logged in you will see a screen something like this:

[…] install ActiveMQÂ as per my previous […]
[…] install ActiveMQÂ as per my previous […]
[…] install ActiveMQ as per my previous […]
[…] install ActiveMQ as per my previous […]