Package org.apache.tuscany.sca.core.invocation

Examples of org.apache.tuscany.sca.core.invocation.CallbackHandler


            resolvedEndpoint = msgContext.getFrom().getCallbackEndpoint();
        }
       
        if (resolvedEndpoint != null){
            if (resolvedEndpoint.getBinding() == null){
                this.callbackHandler = new CallbackHandler(resolvedEndpoint.getURI());
            } else if (resolvedEndpoint.getBinding().getType().equals(SCABinding.TYPE)){
                this.callbackHandler = new CallbackHandler(resolvedEndpoint.getURI());
            } else {
                this.callbackHandler = new CallbackHandler(resolvedEndpoint.getBinding().getURI());
            }
        } else {
            this.callbackHandler = (CallbackHandler)msgContext.getHeaders().get(Constants.CALLBACK);
           
            if (callbackHandler == null){
                this.callbackHandler = new CallbackHandler(null);
            }
        }
       
        if (callbackHandler.getCallbackTargetURI() != null){
            logger.log(Level.FINE, "Selecting callback EPR using address from forward message: " + callbackHandler.getCallbackTargetURI());
View Full Code Here


                } // end if
            } // end if
               
            // Place the Callback destination name into the Callback EPRs for the service endpoint
            if (callbackdestName != null) {
                msg.getHeaders().put(Constants.CALLBACK, new CallbackHandler(callbackdestName));            
            } // end if 

// Callback ID not used at present           
//            String callbackID = jmsMsg.getStringProperty(JMSBindingConstants.CALLBACK_ID_PROPERTY);
//            if (callbackID != null) {
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.invocation.CallbackHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.