DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • The Enterprise Browser: A Security-Hardened Productivity Platform for the Future of Remote Work
  • Building a Unified API Using GraphQL Joins
  • How to Effectively Manage a Remote Software Development Team
  • How to Collaborate Effectively If Your Team Is Remote

Trending

  • What Is Good Database Design?
  • Designing Databases for Distributed Systems
  • DZone's Article Submission Guidelines
  • Revolutionizing Software Testing

Hawtio Connecting to Remote ActiveMQ Brokers

Claus Ibsen user avatar by
Claus Ibsen
·
Feb. 06, 14 · Interview
Like (0)
Save
Tweet
Share
10.36K Views

Join the DZone community and get the full member experience.

Join For Free

hawtio is an awesome web console that allows you to manage your Java content. hawtio has a plugin for managing ActiveMQ brokers.

hawtio allows to run in one JVM and connect remotely to other JVMs. This allow you to have dedicated boxes with the management console, and leave it out of your production boxes which runs your ActiveMQ brokers, and other server stuff.  It also makes it easier to mange the network topology as people who need web access to the management console only need access to the boxes where the management console is hosted, and not direct access to your production servers. Only the boxes where the management console is hosted needs network connection to the production servers.

Anyway what I wanted to talk about in this blog, is how to use the latest hawtio 1.2.2 as a standalone application to connect to remote ActiveMQ brokers.

For this we use
- hawtio 1.2.2
- activemq 5.8.0

And in ActiveMQ 5.9 hawtio is shipped out of the box.

Starting hawtio

To do this we download the executable hawtio 1.2.2 which you can find on that big button on the getting started page.

To start hawtio we simply run this command from the command line:

java -jar hawtio-app-1.2.2.jar
This starts hawtio on port 8080, though you can specify the port number to use with --port option. For more information see the hawtio getting started page.

Connecting to ActiveMQ 5.8.0

We have Apache ActiveMQ 5.8.0 running on a box. For demonstration purpose I run it on my local laptop, and start ActiveMQ as follows:
davsclaus:/opt/apache-activemq-5.8.0$ bin/activemq console
Then from hawtio we click the Connect tab, and enter the details as shown in the screenshot below:


The username and password is by default admin/admin. Though that can be changed on the ActiveMQ broker, so make sure to use correct login credentials. And I use localhost as hostname because I run everything from the same box. But you can of course enter a DNS or IP name for remote connection.

When you are connected then the navigation bar in hawtio changes to which plugins are currently available running in that remote JVM. As its ActiveMQ 5.8 broker, you should see the ActiveMQ plugin, and can see broker details, as shown in screenshot below:



hawtio as desktop/browser application

In the upcoming hawtio 1.2.3 release James has been cooking some cool stuff to run hawtio as a desktop app and as a browser extension.
A little sneak peak is shown below where you can see hawtio as a app in the Chrome browser.

There is a few things to iron out to have hawtio fully working as a desktop app and as browser extension.
remote

Published at DZone with permission of Claus Ibsen, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • The Enterprise Browser: A Security-Hardened Productivity Platform for the Future of Remote Work
  • Building a Unified API Using GraphQL Joins
  • How to Effectively Manage a Remote Software Development Team
  • How to Collaborate Effectively If Your Team Is Remote

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: