From 2555b1827daae7fd627684edf63fe3afe8ce2ea0 Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 20 Jul 2011 13:35:14 +0000 Subject: Use the correct endpoint interface when the business interface is not specified git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1148761 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk/modules/core/src/main') diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java index fd14c8c03e..b8c205bb28 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java @@ -361,7 +361,7 @@ public class ComponentContextImpl implements RuntimeComponentContext { public ServiceReference getServiceReference(Class businessInterface, RuntimeEndpoint endpoint) { try { if (businessInterface == null) { - InterfaceContract contract = endpoint.getComponentTypeServiceInterfaceContract(); + InterfaceContract contract = endpoint.getBindingInterfaceContract(); businessInterface = (Class)((JavaInterface)contract.getInterface()).getJavaClass(); } RuntimeEndpointReference ref = -- cgit v1.2.3