From c1feaec0db0ef74488bda2d64513e1b7b2e8ab34 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 19 Jun 2009 15:54:54 +0000 Subject: TUSCANY-3092 - bring up remote version of binding.sca and include it in the build git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@786563 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/invocation/impl/CallbackReferenceImpl.java | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'java/sca/modules/core') diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/CallbackReferenceImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/CallbackReferenceImpl.java index c349e43615..ac977cbf37 100644 --- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/CallbackReferenceImpl.java +++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/CallbackReferenceImpl.java @@ -143,12 +143,20 @@ public class CallbackReferenceImpl extends CallableReferenceImpl { try { // TODO - EPR - is this correct? - // Fluff up a new response wire based on the callback endpoint - RuntimeComponentReference ref = - bind((RuntimeComponentReference)wire.getEndpointReference().getReference(), - resolvedEndpoint); - - boundWire = ref.getRuntimeWires().get(0); + // test if the call back wire is manually configured + if ((wire.getEndpointReference().isUnresolved()== false) && + (wire.getEndpointReference().getTargetEndpoint().isUnresolved()== false)){ + boundWire = wire; + resolvedEndpoint = wire.getEndpointReference().getTargetEndpoint(); + } else { + // Fluff up a new response wire based on the callback endpoint + // that came in across the wire + RuntimeComponentReference ref = + bind((RuntimeComponentReference)wire.getEndpointReference().getReference(), + resolvedEndpoint); + + boundWire = ref.getRuntimeWires().get(0); + } Binding binding = wire.getEndpointReference().getBinding(); -- cgit v1.2.3