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

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


            throw new RuntimeException(e);
        }
    }
   
    protected void invoke(InvocationChain chain, Object[] args) {
        Message msg = new MessageImpl();
        msg.setBody(args);
        chain.getHeadInvoker().invoke(msg);
    }
View Full Code Here


    public Message invoke(Message requestMsg) {

        invoke((Object[])requestMsg.getBody());

        // DWR references can not return anything
        return new MessageImpl();
    }
View Full Code Here

        return (Remote)enhancer.create();
    }

    protected Object invokeTarget(Operation op, Object[] args) throws InvocationTargetException {

        Message requestMsg = new MessageImpl();
        ThreadMessageContext.setMessageContext(requestMsg);
        requestMsg.setBody(args);

        Message responseMsg = service.getInvoker(binding, op).invoke(requestMsg);

        if (responseMsg.isFault()) {
            throw new InvocationTargetException((Throwable)responseMsg.getBody());
View Full Code Here

    public Message invoke(Message requestMsg) {

        invoke((Object[])requestMsg.getBody());

        // Ajax references can not return anything
        return new MessageImpl();
    }
View Full Code Here

    public Message invoke(Message requestMsg) {

        invoke((Object[])requestMsg.getBody());

        // DWR references can not return anything
        return new MessageImpl();
    }
View Full Code Here

            throw new RuntimeException(e);
        }
    }
   
    protected void invoke(InvocationChain chain, Object[] args) {
        Message msg = new MessageImpl();
        msg.setBody(args);
        chain.getHeadInvoker().invoke(msg);
    }
View Full Code Here

    public Message invoke(Message requestMsg) {

        invoke((Object[])requestMsg.getBody());

        // DWR references can not return anything
        return new MessageImpl();
    }
View Full Code Here

        return (Remote)enhancer.create();
    }

    protected Object invokeTarget(Operation op, Object[] args) throws InvocationTargetException {

        Message requestMsg = new MessageImpl();
        ThreadMessageContext.setMessageContext(requestMsg);
        requestMsg.setBody(args);

        Message responseMsg = service.getInvoker(binding, op).invoke(requestMsg);

        if (responseMsg.isFault()) {
            throw new InvocationTargetException((Throwable)responseMsg.getBody());
View Full Code Here

            throw new RuntimeException(e);
        }
    }
   
    protected void invoke(InvocationChain chain, Object[] args) {
        Message msg = new MessageImpl();
        msg.setBody(args);
        chain.getHeadInvoker().invoke(msg);
    }
View Full Code Here

    protected Object invokeService(Message requestJMSMsg) throws JMSException, InvocationTargetException {

        String operationName = requestMessageProcessor.getOperationName(requestJMSMsg);
        Operation operation = getTargetOperation(operationName);

        MessageImpl tuscanyMsg = new MessageImpl();
        tuscanyMsg.setOperation(operation);
        if ("onMessage".equals(operation.getName())) {
            tuscanyMsg.setBody(new Object[]{requestJMSMsg});
        } else {
            Object requestPayload = requestMessageProcessor.extractPayloadFromJMSMessage(requestJMSMsg);
            tuscanyMsg.setBody(requestPayload);
        }

        setHeaderProperties(requestJMSMsg, tuscanyMsg, operation);

        return service.getRuntimeWire(targetBinding).invoke(operation, tuscanyMsg);
View Full Code Here

TOP

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

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.