27 February 2015

Run Hawtio locally and connect to Jolokia/ActiveMQ 5.9.1 and above remotely

Bambitroll @ 15:33

Get the Hawtio app from http://hawt.io
Start it like this:

java -jar -Dhawtio.offline=true -Dhawtio.proxyWhitelist=* hawtio-app-2.0.2.jar

Then go to http://localhost:8080/hawtio (actually the tab should open by itself in your default browser after you ran the command above)




Choose Connect->Remote, then Add Connection and use port 8161 and path /api/jolokia




And voila :)


Remember to adjust 2 settings by clicking on the little user icon in the top right corner (in Preferences):
- the ActiveMQ username/password in order to send/consume messages
- the max collection size for Jolokia in order to get all the objects back from JMX

From ActiveMQ 5.9.1 and up, the jolokia agent is installed by default so you should not need to do anything special with your ActiveMQ installation.