vignesh-manel commented on code in PR #21534:
URL: https://github.com/apache/camel/pull/21534#discussion_r2935386498


##########
docs/user-manual/modules/ROOT/pages/camel-jbang.adoc:
##########
@@ -2484,6 +2484,34 @@ then Camel will attempt to uninstall the Jolokia JVM 
Agent. However, this may no
 able to do this always, because the JVM is being terminated which can prevent 
camel-jbang
 from doing JVM process communication to the running Camel integration.
 
+=== Visualizing routes with diagram
+
+The `camel diagram` command uses Hawtio to visualize Camel routes. You can run 
route files in the background and open Hawtio in a browser:
+
+[source,bash]
+----
+camel diagram routes.yaml
+----
+
+To attach to an existing integration:
+
+[source,bash]
+----
+camel diagram --name my-integration
+----
+
+By default Camel JBang stops the background integration when you exit Hawtio; 
use `--keep-running` to leave it running.
+
+You can export a PNG snapshot using Playwright (requires a Chromium browser 
binary and executable path configured):
+
+[source,bash]
+----
+camel diagram routes.yaml --output=routes.png 
--playwright-browser-path=/path/to/chrome
+----
+
+When using `--output`, Hawtio runs headless and the PNG is captured 
automatically.

Review Comment:
   added



##########
docs/user-manual/modules/ROOT/pages/camel-jbang.adoc:
##########
@@ -2484,6 +2484,34 @@ then Camel will attempt to uninstall the Jolokia JVM 
Agent. However, this may no
 able to do this always, because the JVM is being terminated which can prevent 
camel-jbang
 from doing JVM process communication to the running Camel integration.
 
+=== Visualizing routes with diagram
+
+The `camel diagram` command uses Hawtio to visualize Camel routes. You can run 
route files in the background and open Hawtio in a browser:

Review Comment:
   added



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to