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

commit 06c6cda6f344ca3c0d765f739bcd5a4c7b20fac1
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Dec 21 16:02:50 2023 +0100

    CAMEL-20274: camel-management - Add JMX operation to update route from XML
---
 core/camel-spring-boot/src/main/docs/spring-boot.json             | 4 +++-
 .../apache/camel/spring/boot/CamelConfigurationProperties.java    | 8 ++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.json 
b/core/camel-spring-boot/src/main/docs/spring-boot.json
index 40030eafa5d..878e51ec9a0 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.json
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.json
@@ -958,7 +958,9 @@
     {
       "name": "camel.springboot.jmx-update-route-enabled",
       "type": "java.lang.Boolean",
-      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties"
+      "description": "Whether to allow updating routes at runtime via JMX 
using the ManagedRouteMBean. This is disabled by default, but can be enabled 
for development and troubleshooting purposes, such as updating routes in an 
existing running Camel via JMX and other tools.",
+      "sourceType": 
"org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": false
     },
     {
       "name": "camel.springboot.lightweight",
diff --git 
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
 
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
index a631a4dd525..addd44dad82 100644
--- 
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
+++ 
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
@@ -631,6 +631,14 @@ public class CamelConfigurationProperties extends 
DefaultConfigurationProperties
      */
     private String jmxManagementNamePattern = "#name#";
 
+    /**
+     * Whether to allow updating routes at runtime via JMX using the 
ManagedRouteMBean.
+     *
+     * This is disabled by default, but can be enabled for development and 
troubleshooting purposes, such as updating
+     * routes in an existing running Camel via JMX and other tools.
+     */
+    private boolean jmxUpdateRouteEnabled;
+
     /**
      * If dumping is enabled then Camel will during startup dump all loaded 
routes (incl rests and route templates)
      * represented as XML/YAML DSL into the log. This is intended for trouble 
shooting or to assist during development.

Reply via email to