diff options
-rw-r--r-- | sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java b/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java index ef5dabeb67..4b5e696d4f 100644 --- a/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java +++ b/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java @@ -84,9 +84,11 @@ public class SCAClientFactoryImpl extends SCAClientFactory { private Node findLocalNode(Endpoint endpoint) { for (Node node : nodeFactory.getNodes().values()) { - if (((NodeImpl)node).getServiceEndpoints().contains(endpoint)) { - return node; - } + for (Endpoint ep : ((NodeImpl)node).getServiceEndpoints()) { + if (endpoint.getURI().equals(ep.getURI())) { + return node; + } + } } return null; } |