Author: antelder
Date: Tue Mar 16 07:55:35 2010
New Revision: 923612

URL: http://svn.apache.org/viewvc?rev=923612&view=rev
Log:
Set remote when its remote

Modified:
    
tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java?rev=923612&r1=923611&r2=923612&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
 Tue Mar 16 07:55:35 2010
@@ -168,8 +168,9 @@ public class HazelcastEndpointRegistry e
         for (Object v : endpointMap.values()) {
             Endpoint endpoint = (Endpoint)v;
             logger.fine("Matching against - " + endpoint);
-            if (matches(uri, endpoint.getURI())) {
+            if (endpoint.matches(uri)) {
                 if (!isLocal(endpoint)) {
+                    endpoint.setRemote(true);
                     ((RuntimeEndpoint)endpoint).bind(registry, this);
                 } else {
                     // get the local version of the endpoint


Reply via email to