summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/binding-sca/src/main
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-09-09 10:45:28 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-09-09 10:45:28 +0000
commitd59495feac722bcff5d2c48e6c3007d23a6d4d71 (patch)
treebbaeaf0143b3fbf02a2c4fbfda83f1458bffca7b /java/sca/modules/binding-sca/src/main
parentdc15447dfebac2b0218cb1ce6903923c574c84df (diff)
Correct jms sca binding calculation of remote
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@693427 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-sca/src/main')
-rw-r--r--java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java6
1 files changed, 3 insertions, 3 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 038aaaf1a4..850fd77e96 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,10 +96,10 @@ public class RuntimeSCAReferenceBindingProvider implements ReferenceBindingProvi
// what are the implications of this here?
if (RemoteBindingHelper.isTargetRemote()) {
- if (reference.getInterfaceContract() != null && reference.getInterfaceContract().getInterface().isRemotable()) {
- targetIsRemote = true;
+ if (reference.getInterfaceContract() != null) {
+ targetIsRemote = reference.getInterfaceContract().getInterface().isRemotable();
} else {
- targetIsRemote = false;
+ targetIsRemote = true;
}
} else if (optimizableBinding.getTargetComponentService() != null) {
if (optimizableBinding.getTargetComponentService().isUnresolved() == true) {