diff options
Diffstat (limited to '')
-rw-r--r-- | java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java b/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java index 7ec3f2d60a..038aaaf1a4 100644 --- a/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java +++ b/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java @@ -96,7 +96,11 @@ public class RuntimeSCAReferenceBindingProvider implements ReferenceBindingProvi // what are the implications of this here? if (RemoteBindingHelper.isTargetRemote()) { - targetIsRemote = true; + if (reference.getInterfaceContract() != null && reference.getInterfaceContract().getInterface().isRemotable()) { + targetIsRemote = true; + } else { + targetIsRemote = false; + } } else if (optimizableBinding.getTargetComponentService() != null) { if (optimizableBinding.getTargetComponentService().isUnresolved() == true) { targetIsRemote = true; |