You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/02/11 09:35:29 UTC

[camel] 02/02: CAMEL-14399: OsgiDefaultCamelContext should init like camel-blueprint does. Thanks to Rob T for reporting.

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

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

commit a1c4b82a31108cd23409d0ee6ca4edc5b809b291
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 11 10:35:01 2020 +0100

    CAMEL-14399: OsgiDefaultCamelContext should init like camel-blueprint does. Thanks to Rob T for reporting.
---
 .../main/java/org/apache/camel/core/osgi/OsgiDefaultCamelContext.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiDefaultCamelContext.java b/core/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiDefaultCamelContext.java
index 188f043..9f85f73 100644
--- a/core/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiDefaultCamelContext.java
+++ b/core/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiDefaultCamelContext.java
@@ -29,6 +29,7 @@ public class OsgiDefaultCamelContext extends DefaultCamelContext {
     private final BundleContext bundleContext;
 
     public OsgiDefaultCamelContext(BundleContext bundleContext) {
+        super(false);
         this.bundleContext = bundleContext;
 
         // inject common osgi
@@ -41,6 +42,8 @@ public class OsgiDefaultCamelContext extends DefaultCamelContext {
         addLifecycleStrategy(repo1);
         // setup the application context classloader with the bundle classloader
         setApplicationContextClassLoader(new BundleDelegatingClassLoader(bundleContext.getBundle()));
+
+        init();
     }
 
     @Override