aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hugh...@apache.org
Subject svn commit: r1624496 - /aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
Date Fri, 12 Sep 2014 11:04:52 GMT
Author: hughesj
Date: Fri Sep 12 11:04:52 2014
New Revision: 1624496

URL: http://svn.apache.org/r1624496
Log:
ARIES-1201: fix hang one Blueprint start when using reference listeners

Modified:
    aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java

Modified: aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java?rev=1624496&r1=1624495&r2=1624496&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
(original)
+++ aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
Fri Sep 12 11:04:52 2014
@@ -374,8 +374,9 @@ public class BlueprintContainerImpl 
                         break;
                     case Create:
                         cancelFutureIfPresent();
-                        registerServices();
                         instantiateEagerComponents();
+			//Register the services after the eager components are ready, as per 121.6
+			registerServices();
                         // Register the BlueprintContainer in the OSGi registry
                         int bs = bundle.getState();
                         if (registration == null && (bs == Bundle.ACTIVE || bs ==
Bundle.STARTING)) {



Mime
View raw message