summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core/src/main/java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-05-01 08:11:50 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-05-01 08:11:50 +0000
commiteb12d84e82df29319ad394ed646990f68f180a60 (patch)
tree51832c27909b925e37fb1e0337a5394c6c9deb6d /sca-java-2.x/trunk/modules/core/src/main/java
parentbad1f71da1978610806427e2e2a2f96a2fb5b88e (diff)
TUSCANY-4037: Apply patch from Greg Dritschler to fix OutOfMemoryError because domain registry holds remote endpoint references created by SCAClientFactory.getService
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1332563 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java
index 2ccb8a791e..cfc997b261 100644
--- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java
+++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java
@@ -454,7 +454,9 @@ public class RuntimeEndpointReferenceImpl extends EndpointReferenceImpl implemen
started = true;
- if (!getReference().getName().startsWith("$self$."))
+ Contract ref = getReference();
+ String refName = ref.getName();
+ if (!refName.startsWith("$self$.") && !refName.startsWith("$sca.client$.") && !ref.isForCallback())
compositeContext.getEndpointRegistry().addEndpointReference(this);
// InterfaceContract bindingContract = getBindingInterfaceContract();