Usually if we develop a java camel application using Java DSL then its very difficult to monitor the camel routs. To check whether the routes are running or not we need an extra monitoring application need to be developed.
But Hawtio ease our work in that. If your project is web application project then Hawtio has already camel component for it. So with out any extra efforts it will directy work.
But for Java Application it is not showing the routes.
When we develop a java camel application we need some extra works to be done in order to view the routs.
Steps for configuring java related camel application on hawtio
Download the hawtio from https://hawt.io/getstarted/
Place the war file in tomcat webapps folder --> start the tomcat web server. ( If you don’t have tomcat then please download the same from https://tomcat.apache.org/download-80.cgi )
Goto: http://localhost:8080/sample-1.5.6/welcome to view the hawtio Note: At the first time there will be no Container tab.
Use the following command line argument:
java <location of Jolokia agent.jar file> =host=0.0.0.0 -jar <location of our jar file>
Example:
java -javaagent:jolokia-jvm-1.4.0-agent.jar=host=0.0.0.0 -jar C:\Users\HackoMan\Documents\GitHub\target\myjar-1.0-SNAPSHOT.jar
Goto: http://localhost:8080/sample-1.5.6/welcome hawtio --> Connect --> Discovery --> press run/play button as mentioned below.
This opens a new tab. Press camel tab to view all of our route.
Then click on any route that either you want to debug or trace or to find details about it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With