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 bf4a6a951e1 debugger is created twice (#14106)
bf4a6a951e1 is described below

commit bf4a6a951e1e33bfef555b66fd1d4c373b8cbb9c
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun May 12 20:19:15 2024 +0200

    debugger is created twice (#14106)
    
    * CAMEL-20758: camel-spring-boot - Debugger is created twice
    
    * CAMEL-20758: camel-spring-boot - Debugger is created twice
---
 .../org/apache/camel/impl/engine/AbstractCamelContext.java     | 10 ++++++----
 .../modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc         |  7 +++++++
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git 
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
 
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
index 59eb0afd92c..57d08b48da5 100644
--- 
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
+++ 
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
@@ -2293,10 +2293,12 @@ public abstract class AbstractCamelContext extends 
BaseService
             }
         }
         if (!debuggerDetected && (isDebugging() || isDebugStandby())) {
-            // debugging enabled but camel-debug was not auto-detected from 
classpath
-            // so install default debugger
-            BacklogDebugger backlog = 
DefaultBacklogDebugger.createDebugger(this);
-            addService(backlog, true, true);
+            if (hasService(BacklogDebugger.class) == null) {
+                // debugging enabled but camel-debug was not auto-detected 
from classpath
+                // so install default debugger
+                BacklogDebugger backlog = 
DefaultBacklogDebugger.createDebugger(this);
+                addService(backlog, true, true);
+            }
         }
 
         addService(getManagementStrategy(), false);
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc
index 2f6577738ee..a595510a771 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc
@@ -81,3 +81,10 @@ 
authorizationPolicy.setAuthorizationManager(AuthorityAuthorizationManager.hasRol
 This new pattern supports a more expressive language to define your own 
authorization rules, exposing the full power of the Spring Security framework 
to Camel route policies.
 See the 
https://docs.spring.io/spring-security/reference/5.8/migration/servlet/authorization.html#servlet-replace-permissionevaluator-bean-with-methodsecurityexpression-handler[spring
 documentation] for further details on how to migrate your custom code from 
`AccessDecisionManager` to `AuthorizationManager`.
 
+
+== Camel Spring Boot
+
+=== camel-debug-starter
+
+Using camel debugger with Spring Boot is now moved from `camel-spring-boot` 
into `camel-debug-starter` where you can configure the debugger
+via `camel.debug.` options in `application.properties`.

Reply via email to