Package org.apache.ode.bpe.event

Examples of org.apache.ode.bpe.event.IResponseMessage


        }

        SimpleRequestMessageEvent msg = createEvent(exchange, inputPartName);
        EventDirector ed = ((BPEComponent) getServiceUnit().getComponent()).getEventDirector();
        try {
            IResponseMessage response;
            try {
                BPEEndpoint.setCurrent(this);
                response = ed.sendEvent(msg, true);
            } finally {
                BPEEndpoint.setCurrent(null);
            }
            IInteraction payload = response.getPart(outputPartName);
            if (response.getFault() != null) {
                Exception e = response.getFault().getFaultException();
                if (e != null) {
                    throw e;
                }
                // TODO: handle simple fault
                throw new BPRuntimeException(response.getFault().getFaultString(), "");
            } else if (exchange instanceof InOnly || exchange instanceof RobustInOnly) {
                if (payload != null) {
                    throw new UnsupportedOperationException(
                            "Did not expect return value for in-only or robust-in-only");
                }
View Full Code Here


    interaction.setDocument(transformer.toDOMDocument(exchange.getMessage("in")));
    msg.setPart(inputPartName, interaction);
       
        EventDirector ed = ((BPEComponent) getServiceUnit().getComponent()).getEventDirector();
        try {
            IResponseMessage response;
            try {
                BPEEndpoint.setCurrent(this);
                response = ed.sendEvent(msg, true);
            } finally {
                BPEEndpoint.setCurrent(null);
            }
            IInteraction payload = response.getPart(outputPartName);
            if (response.getFault() != null) {
                Exception e = response.getFault().getFaultException();
                if (e != null) {
                    throw e;
                }
                // TODO: handle simple fault
                throw new BPRuntimeException(response.getFault().getFaultString(), "");
            } else if (exchange instanceof InOnly || exchange instanceof RobustInOnly) {
                if (payload != null) {
                    throw new UnsupportedOperationException("Did not expect return value for in-only or robust-in-only");
                }
                exchange.setStatus(ExchangeStatus.DONE);
View Full Code Here

TOP

Related Classes of org.apache.ode.bpe.event.IResponseMessage

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.