/** * Indicates if the invocation is for the callback of a bidirectional service * @param msg the Message * @return true if the invocation is for the callback of a bidirectional service, false otherwise */ private boolean isInvocationForCallback( Message msg ) { org.apache.tuscany.sca.assembly.EndpointReference fromEPR = msg.getFrom(); if( fromEPR != null ) { ComponentReference ref = fromEPR.getReference(); if( ref != null ) return ref.isForCallback(); } // end if return false; } // end method isInvocationForCallback
public JAXWSBindingInvoker(Operation operation, WebServiceFeature[] features, MessageFactory messageFactory, WebServiceBinding wsBinding, RuntimeEndpointReference endpointReference) { this.messageFactory = messageFactory; this.operation = operation; this.wsBinding = wsBinding; this.endpointReference = endpointReference; if (endpointReference.getReference().isForCallback()) { this.dynamicDispatchForCallback = true; } else { this.staticDispatch = createStaticDispatch(); } }
/** * Indicates if the invocation is for the callback of a bidirectional * service * * @param msg the Message * @return true if the invocation is for the callback of a bidirectional * service, false otherwise */ private boolean isInvocationForCallback(Message msg) { org.apache.tuscany.sca.assembly.EndpointReference fromEPR = msg.getFrom(); if (fromEPR != null) { ComponentReference ref = fromEPR.getReference(); if (ref != null) return ref.isForCallback(); } // end if return false; } // end method isInvocationForCallback
if (!promoted && !componentReference.isForCallback() && !componentReference.isWiredByImpl()) { Monitor.error(monitor, this,
if (!promoted && !componentReference.isForCallback() && !componentReference.isWiredByImpl()) { Monitor.error(monitor, this,
if (!promoted && !componentReference.isForCallback() && !componentReference.isWiredByImpl()) { Monitor.error(monitor, this,
if (!promoted && !componentReference.isForCallback() && !componentReference.isWiredByImpl()) { Monitor.error(monitor, this,
protected Destination getRequestDestination(org.apache.tuscany.sca.invocation.Message tuscanyMsg, Session session) throws JMSBindingException, NamingException, JMSException { Destination requestDestination = null; if (endpointReference.getReference().isForCallback()) { // Check if the CallbackDestinationInterceptor set a callback destination from the request msg if (tuscanyMsg.getFrom().getTargetEndpoint() != null) { if (tuscanyMsg.getFrom().getTargetEndpoint().getBinding() != null) { this.jmsBinding = (JMSBinding)tuscanyMsg.getFrom().getTargetEndpoint().getBinding(); /* TUSCANY-4011 - we could delay until this point until setting the callback destination CallbackHandler callbackHandler = (CallbackHandler)tuscanyMsg.getHeaders().get(Constants.CALLBACK); if (callbackHandler != null && callbackHandler.getCallbackTargetURI() != null){ this.jmsBinding.setDestinationName(callbackHandler.getCallbackTargetURI()); } */ requestDestination = lookupDestination(); } } } if (requestDestination == null) { requestDestination = bindingRequestDest; } return requestDestination; }
if (componentReference.getReference() != null || componentReference.isForCallback()) { continue;
if (!reference.isForCallback() && (binding instanceof SCABinding)) continue;
if (!reference.isForCallback() && (binding instanceof SCABinding)) continue;
if (!reference.isForCallback() && (binding instanceof SCABinding)) continue;
if (!reference.isForCallback() && (binding instanceof SCABinding)) continue;
if (componentReference.getReference() != null || componentReference.isForCallback()) { continue;