summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-25 09:57:45 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-25 09:57:45 +0000
commitf2c7b62a245d07d3da79b579785ad2578f38a806 (patch)
tree589a2d868d8e8bb5d442140daf544a678c5f5af9 /sca-java-2.x/trunk/modules
parent1e2d01d50cea65671114fb1c533a5bbc3f087071 (diff)
Use uri equals for comparing endpoints so that serialzed/deserilized endpoints work ok
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@902757 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java8
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;
}