This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new f50a4326 CAMEL-20253: camel-jbang - Add support for jolokia 2.x (#133)
f50a4326 is described below

commit f50a4326aa764e2a0339f25f11ec25d4fb5c47af
Author: Ivan Kulaga <[email protected]>
AuthorDate: Wed Feb 14 00:58:41 2024 +0600

    CAMEL-20253: camel-jbang - Add support for jolokia 2.x (#133)
    
    * CAMEL-20253: camel-jbang - Add support for jolokia 2.x
    enabled jolokia in platform-http-main
    
    * for now jolokia does not exist as a separate plugin
---
 main/README.adoc                               | 2 ++
 main/src/main/resources/application.properties | 1 +
 2 files changed, 3 insertions(+)

diff --git a/main/README.adoc b/main/README.adoc
index 0dc939f4..12efe460 100644
--- a/main/README.adoc
+++ b/main/README.adoc
@@ -50,6 +50,8 @@ And then use the CLI to see status:
 
 This example comes with embedded developer console that is accessible via 
`http://localhost:8080/q/dev`.
 You can also check status of health-check via `http://localhost:8080/q/health`.
+You can also access https://jolokia.org/[jolokia] api via 
`http://localhost:8080/q/jolokia`.
+This gives you access to basic JMX operations. For example, to query 
https://docs.oracle.com/javase/8/docs/api/java/lang/management/MemoryMXBean.html[MemoryMBean],
 use 
`http://localhost:8080/q/jolokia/read/java.lang:type=Memory/HeapMemoryUsage/used`.
 
 === How to configure for Camel Textual Route debugging
 
diff --git a/main/src/main/resources/application.properties 
b/main/src/main/resources/application.properties
index 7bcf908e..befa5da8 100644
--- a/main/src/main/resources/application.properties
+++ b/main/src/main/resources/application.properties
@@ -27,6 +27,7 @@ camel.server.enabled = true
 camel.context.dev-console = true
 camel.server.dev-console-enabled = true
 camel.server.health-check-enabled = true
+camel.server.jolokia-enabled = true
 
 # application properties
 hi = Hello

Reply via email to