diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-09 06:45:51 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-09 06:45:51 +0000 |
commit | 7ea46da4356a04cd45cfa1cadcad9f7fdb28aa7f (patch) | |
tree | 76798833990bc5cc0472c3ef17975e1c4f187868 /java/sca/modules/binding-sca/src | |
parent | cdc40905ce50878dc894a27f6d30661517e59ad4 (diff) |
Change remote jms sca binding to only be used for remotable services
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@693381 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-sca/src')
-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; |