tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r1354772 - /tuscany/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java
Date Wed, 27 Jun 2012 23:21:49 GMT
Author: rfeng
Date: Wed Jun 27 23:21:48 2012
New Revision: 1354772

URL: http://svn.apache.org/viewvc?rev=1354772&view=rev
Log:
Not check if the endpoint is out of date for local registry

Modified:
    tuscany/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java

Modified: tuscany/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java?rev=1354772&r1=1354771&r2=1354772&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java
Wed Jun 27 23:21:48 2012
@@ -97,7 +97,8 @@ public abstract class BaseDomainRegistry
     }
 
     public boolean isOutOfDate(EndpointReference endpointReference) {
-        return ! findEndpoint(endpointReference).contains(endpointReference.getTargetEndpoint());
+        // Only check if the domain registry is distributed
+        return isDistributed() && (! findEndpoint(endpointReference).contains(endpointReference.getTargetEndpoint()));
     }
     
     public List<Endpoint> findEndpoint(EndpointReference endpointReference) {



Mime
View raw message