How to setup ActiveMQ

As we are diving into the concept of Java Messaging Service (JMS), the first step to going into the practicals is to setup ActiveMQ.

Apache ActiveMQ is the most popular and powerful open source messaging server. ActiveMQ apart from being powerful and open source, it is the most light weight messaging server compared to other messaging servers like JBossMQ and Tibco EMS.

First download one of SNAPSHOT binaries from http://activemq.apache.org/download.html and copy the downloaded directory to OS installation drive (C:\).

In the downloaded root directory, you will see a sub-folder named ‘/bin‘, which contains a file named ‘activemq.bat‘. Double-click on this file and wait for few seconds, until the command prompt stops at –


ActiveMQ installation - jCombat

Once the ActiveMQ messaging server starts up, we can then see the ActiveMQ Admin Console, which shows all the useful metrics on Consumers, Topics, Queues, Messages, etc.

By default, ActiveMQ messaging server uses the port 8161 (http://localhost:8161/) for this and the default ActiveMQ Admin Console can be seen at http://localhost:8161/admin.

The default setup also provides with a modular Hawtio console for better management. This doesn’t need any separate configuration and can be seen at http://localhost:8161/hawtio/.

Note that the default credential to login to the ActiveMQ Admin Console is admin/admin.

Receive our updates to your inbox

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.