Package com.fs.pxe.sfwk.spi

Examples of com.fs.pxe.sfwk.spi.Message


    public void onMessageExchange(MessageExchangeEvent event) throws MessageExchangeException {
        try {
            if (event.getEventType() == MessageExchangeEvent.IN_RCVD_EVENT) {
                com.fs.pxe.sfwk.spi.MessageExchange me = event.getMessageExchange();
                Message input = me.lastInput();
                result = new MuleMessage(input.getMessage());

            } else if (event.getEventType() == MessageExchangeEvent.OUT_RCVD_EVENT) {
                com.fs.pxe.sfwk.spi.MessageExchange me = event.getMessageExchange();
                Message output = me.lastOutput();
                result = new MuleMessage(output.getMessage());
            } else if (event.getEventType() == MessageExchangeEvent.IN_FAULT_EVENT ||
                    event.getEventType() == MessageExchangeEvent.OUT_FAULT_EVENT) {
                com.fs.pxe.sfwk.spi.MessageExchange me = event.getMessageExchange();
                //todo what needs to be passed in here??
                Message fault = me.lastFault(null);
                result = new MuleMessage(fault.getMessage());
                result.setExceptionPayload(new ExceptionPayload(new Exception("Failed to process PXE Bpel event. See Message payload for details: " + fault.getDescription())));

            }
            lock.countDown();

        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.fs.pxe.sfwk.spi.Message

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.