camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1445064 - /camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
Date Tue, 12 Feb 2013 08:55:36 GMT
Author: davsclaus
Date: Tue Feb 12 08:55:36 2013
New Revision: 1445064

URL: http://svn.apache.org/r1445064
Log:
CAMEL-6068: Fixed starting up CamelContext in blueprint may lead to a deadlock. Thanks to
Aki Yoshida for the patch.

Modified:
    camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java

Modified: camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java?rev=1445064&r1=1445063&r2=1445064&view=diff
==============================================================================
--- camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
(original)
+++ camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
Tue Feb 12 08:55:36 2013
@@ -121,8 +121,9 @@ public class BlueprintCamelContext exten
             LOG.debug("Service {} changed to {}", event, event.getType());
         }
         // look for blueprint container to be registered, and then we can start the CamelContext
-        if (event.getType() == ServiceEvent.REGISTERED && event.getServiceReference().isAssignableTo(bundleContext.getBundle(),
-                "org.osgi.service.blueprint.container.BlueprintContainer")) {
+        if (event.getType() == ServiceEvent.REGISTERED
+                && event.getServiceReference().isAssignableTo(bundleContext.getBundle(),
"org.osgi.service.blueprint.container.BlueprintContainer")
+                && bundleContext.getBundle().equals(event.getServiceReference().getBundle()))
{
             try {
                 maybeStart();
             } catch (Exception e) {



Mime
View raw message