tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsdelf...@apache.org
Subject svn commit: r569218 - /incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
Date Fri, 24 Aug 2007 02:05:32 GMT
Author: jsdelfino
Date: Thu Aug 23 19:05:32 2007
New Revision: 569218

URL: http://svn.apache.org/viewvc?rev=569218&view=rev
Log:
Fix for TUSCANY-1581, DefaultSCADomain now stops components before deactivating them.

Modified:
    incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java

Modified: incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java?rev=569218&r1=569217&r2=569218&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
(original)
+++ incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
Thu Aug 23 19:05:32 2007
@@ -201,16 +201,16 @@
         CompositeActivator compositeActivator = runtime.getCompositeActivator();
         for (Composite composite: domainComposite.getIncludes()) {
             try {
-                compositeActivator.deactivate(composite);
+                for (Component component : composite.getComponents()) {
+                    compositeActivator.stop(component);
+                }
             } catch (ActivationException e) {
                 throw new ServiceRuntimeException(e);
             }
         }
         for (Composite composite: domainComposite.getIncludes()) {
             try {
-                for (Component component : composite.getComponents()) {
-                    compositeActivator.stop(component);
-                }
+                compositeActivator.deactivate(composite);
             } catch (ActivationException e) {
                 throw new ServiceRuntimeException(e);
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message