Using Hawtio to monitor Apache Camel route started as Java standalone process

Step 1: Gathering info

http://hawt.io/getstarted/index.html

Step 2: Download Jolokia Java Agent

Download Jolokia JARs from http://jolokia.org/dist/1.2.1/jolokia-1.2.1-bin.zip. Unzip the file.

Step 3: Add VM arguments to for enabling Jolokia Java Agent

Add following VM arguments when starting your Java standalone client:

-javaagent:/path/to/-javaagent:/.../jolokia-1.2.1/agents/jolokia-jvm.jar

Step 4: Start the Camel route

You should see something similar in your console

No access restrictor found, access to all MBean is allowed
Jolokia: Agent started with URL http://127.0.0.1:8778/jolokia/

Step 5: Download and install Chrom Client

Steps:

  1. Download the chrom extension from http://central.maven.org/maven2/io/hawt/hawtio-crx/1.3.1/hawtio-crx-1.3.1.crx
  2. Start Chrom and open extension path at chrome://extensions/
  3. Drop the downloaded CRX file onto the page
  4. Open the app page, select Hawtio app and enter the URL that was shown on Step 4. In my case this was port 8778 and path jolokia.

You should see the Hawtio page with your Camel route:

I especially like the Diagram tab showing the route layout:

Original post: http://peter-on-java.blogspot.com/2014/05/using-hawito-to-monitor-apache-camel.html

Tags monitoring camel esb