VOOZH about

URL: https://www.javacodegeeks.com/2016/07/running-apache-activemq-hawtio-standalone-mode.html

⇱ Running Apache ActiveMQ and hawtio in Standalone Mode - Java Code Geeks


Apache ActiveMQ is my first choice every time a Message Queue is needed to solve my integration problems.
 
 
 
 
 
 
 
 
 
 
πŸ‘ apache-activemq-logo

Unfortunately the ActiveMQ Web Console is not that comfortable, so I decided to add the Red Hat JBoss project hawtio to my standalone ActiveMQ environment.

πŸ‘ logo-450px

Hawtio is a modular web console for managing Java stuff. It has nice dashboards, wiki and lots of plugins for logshealth, JMX, OSGi, Apache ActiveMQApache CamelApache OpenEJBApache TomcatJettyJBoss and Fuse Fabric.
Currently there are just a few tutorials out there which explain how to add hawtio to a standalone ActiveMQ installation. Unfortunately these tutorials are outdated and misleading. Therefore I am writing this tutorial. You can see it as an update of existing tutorials.

There are two ways to get your standalone ActiveMQ up and running with hawtio. You can either follow the following steps or take a look at my GitHub repository which contains a running version of ActiveMQ and hawtio. You can find it here.

Getting Started

  1. Download the latest version of ActiveMQ (download)
  2. Download hawtio offline .war file (download)
  3. Unzip the formerly downloaded activemq folder
  4. Unzip the .war file
  5. Rename the folder to just β€œhawtio”
  6. Copy it in the unzipped activemq/webapps folder
  7. To override the hawtio auth defaults, open the env script which is located in the bin folder in your activemq folder.
  8. Search for β€œACTIVE_OPTS” and add these three properties: -Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal

After these steps, you can access the hawtio web console via http://localhost:8161/hawtio and login with admin/admin. The hawtio web console looks like:

πŸ‘ activemq-hawtio

As you can see, the hawtio is a really nice addon and much more comfortable than the standard ActiveMQ console. Give it a try! Have fun with ActiveMQ and hawtio!

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

πŸ‘ Photo of Bennet Schulz
Bennet Schulz
July 7th, 2016Last Updated: July 6th, 2016
0 216 1 minute read

Bennet Schulz

Bennet is a JavaEE and JavaFX addicted IT Consultant working at codecentric AG in Hamburg, Germany. In his free time he is involved in several Java User Group activities and conferences. He regularly blogs about his projects and different Java topics.
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Back to top button
Close
wpDiscuz