Pages

Tuesday, August 4, 2015

Installing Jboss A-MQ 6.2

Jboss A-MQ 6.2 has been released on 2015-06-23 with lots of bug fixes along with major switch from Active MQ 5.9 to 5.11. Below are the steps for installing the new version and exploring the messaging world :) .



1.) Download JBoss A-MQ 6.2.0.GA Zip and md5 checksum to ensure the integrity.

2.) Compare the md5 checksum of zip file with downloaded one.

3.) If, both are same then unpack the archive. If you are unpacking the archive in windows, then make sure that you don't have any space and any special characters in name as %, $, # etc.

4.) Configure Users and Roles as per your requirements to $AMQ_HOME/etc/users.properties . Format will be as below.
# USER=PASSWORD,ROLE1,ROLE2,…

Note: I am using here simple admin password for demo, but in Live scenarios please choose strong password, as this password will be stored in plain text.  Jboss A-MQ 6.2 support RBAC(Role Based Access control), So we can assign different roles as per needed.

5.) Start AMQ instance.

6.) Login to console to view runtime information about container.

7.) Verify the Installations :
a.) Send message using below command, by default it will send 1000 messages to TEST queue.
#./bin/client "activemq:producer --user Username --password Password"
b.)  Check status about the messages:
#./bin/client "activemq:dstat"
c.) Run consumer client to consume the messages from TEST Queue as below :
#./bin/client "activemq:consumer --user Username --password Password"
d.) Again verify the Queue status by running following command:
#./bin/client "activemq:dstat"

You can explore all these information and even much more using hawtio console. It provide really impressive pictorial view for digging further and monitor the things using JMX mbeans.

Below are few screen shot from hawtio console:
ActiveMQ Tab :

Dashboard Tab:

JMX Tab: