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.git


The following commit(s) were added to refs/heads/main by this push:
     new f1fd3f34436 CAMEL-21848: camel-jbang - Add jolokia when using 
--console to make it easier for tooling to trouble-shoot with camel-jbang
f1fd3f34436 is described below

commit f1fd3f344362bc4d05c67e7fd1944f15d1b2adf1
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Mar 7 12:22:29 2025 +0100

    CAMEL-21848: camel-jbang - Add jolokia when using --console to make it 
easier for tooling to trouble-shoot with camel-jbang
---
 .../src/main/java/org/apache/camel/main/KameletMain.java             | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java 
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
index 72cb8c461a0..148dca9e966 100644
--- 
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
+++ 
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
@@ -525,8 +525,11 @@ public class KameletMain extends MainCommandLineSupport {
         if (console) {
             configure().setDevConsoleEnabled(true);
             configure().httpServer().withEnabled(true);
-            configure().httpServer().withInfoEnabled(true); // also enable 
info if console is enabled
             configure().httpServer().withDevConsoleEnabled(true);
+            // also include health,info and jolokia
+            configure().httpServer().withHealthCheckEnabled(true);
+            configure().httpServer().withInfoEnabled(true);
+            configure().httpServer().withJolokiaEnabled(true);
         }
         boolean tracing = 
"true".equals(getInitialProperties().get(getInstanceType() + 
".backlogTracing"));
         if (tracing) {

Reply via email to