camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [camel] 01/02: CAMEL-12291: Fixed Blueprint error: name is already instanciated as null and cannot be removed. Thanks to gnodet for the patch.
Date Mon, 05 Mar 2018 12:07:12 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 06d196f5b3d02c31dd7dfba23858e33541297e63
Author: Claus Ibsen <claus.ibsen@gmail.com>
AuthorDate: Mon Mar 5 12:43:18 2018 +0100

    CAMEL-12291: Fixed Blueprint error: name is already instanciated as null and cannot be
removed. Thanks to gnodet for the patch.
---
 .../java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
index 3ad1f04..808858b 100644
--- a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
+++ b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
@@ -1053,7 +1053,8 @@ public class CamelNamespaceHandler implements NamespaceHandler {
             // because the factory has already been instantiated
             try {
                 for (String component : components) {
-                    if (camelContext.getComponent(component) == null) {
+                    if (camelContext.getComponent(component, false) == null) {
+                        // component not already in camel-context so resolve an OSGi reference
to it
                         getComponentResolverReference(context, component);
                     } else {
                         LOG.debug("Not creating a service reference for component {} because
a component already exists in the Camel Context", component);

-- 
To stop receiving notification emails like this one, please contact
davsclaus@apache.org.

Mime
View raw message