Skip to main content

Install Hawtio to inspect activemq messages

In this article, we explain how to install Hawtio and explore how to inspect Active_MQ messages.

Y
Written by Yusef Abulaynain
Updated over 5 months ago

Installing and using Hawtio to inspect activemq messages

Hawtio is a third-party tool that allows the investigation of the various activemq messages used in various parts of Mosaic. These messages usually contain important information such as data structure and errors.

Installing Hawtio

Before installing Hawtio download it from http://hawtio.github.io/hawtio/getstarted/index.html and click the Download hawtio-default.war button under Using a Servelet Engine or Application Server.
​

Steps to install

  1. Go to the Weblogic console and log in.

  2. Go to Deployed Resources then Deployments.

  3. Click Install.

  4. In the path field enter the path to the location of the hawtio war file.

  5. In the list of files under Current Location select the hawtio war file and click Next.

  6. Select the Install this deployment as an application option and click next.

  7. Click next.

  8. Select the server you wish to attach hawtio to. This can be Mis, Mosaic, or another server.

  9. Don’t change any of the settings on the following page and click next.

  10. Select No, I will review the configuration later option under Additional Configuration and click Finish.

The next screen might take a minute or two to load. Take note of the Context Root value. This is the value that will be used in the URL to access hawtio (see highlighted below).

Accessing Hawtio

In order to access hawtio we need to build the correct URL to use. To do this you need to gather the following pieces of information:

  • Domain and port: This is matches the domain and listening port of the server hawtio is attached to. Example: http://mymosaicserver:7501

  • Path: The value of the context root for the hawtio install. See step 10 above. Example: /hawtio-default-1.5.11

So as an example if you attach hawtio to a mis server accessed with the url http://mymosaicserver:7501/mis, and the context root for hawtio is /hawtio-default-1.5.11, then the url to access hawtio will be http://mymosaicserver:7501/hawtio-default-1.5.11.
​

Using Hawtio to check the contents of a queue

After logging into hawtio click on the ActiveMQ tab in the top menu. When the page loads you will see a list of the different queues. For example, if hawtio is attached to a mis server, you should see the inbound, outbound, and deadletter queues.
​
Clicking on one of them gives you an overview of the queue, and if you click on the browse option in the queue menu in the right-side panel, you will see a list of any messages that are yet to be processed.

Did this answer your question?