This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch camel-karaf-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git
The following commit(s) were added to refs/heads/camel-karaf-4.10.x by this
push:
new e9f0b746d Use bundle synbolic name as camel context name by default
(#678)
e9f0b746d is described below
commit e9f0b746d77c06a14445b09862da7ee8e35da405
Author: JB Onofré <[email protected]>
AuthorDate: Mon Feb 16 06:10:32 2026 +0100
Use bundle synbolic name as camel context name by default (#678)
---
.../java/org/apache/camel/karaf/core/OsgiDefaultCamelContext.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/core/camel-core-osgi/src/main/java/org/apache/camel/karaf/core/OsgiDefaultCamelContext.java
b/core/camel-core-osgi/src/main/java/org/apache/camel/karaf/core/OsgiDefaultCamelContext.java
index af217958d..91dbad3fa 100644
---
a/core/camel-core-osgi/src/main/java/org/apache/camel/karaf/core/OsgiDefaultCamelContext.java
+++
b/core/camel-core-osgi/src/main/java/org/apache/camel/karaf/core/OsgiDefaultCamelContext.java
@@ -19,7 +19,6 @@ package org.apache.camel.karaf.core;
import org.apache.camel.TypeConverter;
import org.apache.camel.karaf.core.utils.BundleContextUtils;
import org.apache.camel.karaf.core.utils.BundleDelegatingClassLoader;
-import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.support.DefaultRegistry;
import org.osgi.framework.BundleContext;
@@ -42,6 +41,10 @@ public class OsgiDefaultCamelContext extends
AbstractOsgiDefaultCamelContext {
// setup the application context classloader with the bundle
classloader
setApplicationContextClassLoader(new
BundleDelegatingClassLoader(bundleContext.getBundle()));
+ if (getCamelContextExtension().getName() == null) {
+
getCamelContextExtension().setName(bundleContext.getBundle().getSymbolicName());
+ }
+
init();
}