Package javax.jbi.messaging

Examples of javax.jbi.messaging.MessageExchange.createFault()


        MessageExchange exchange = this.exchange.getInternalExchange();
        if (exchange instanceof InOnly) {
            exchange.setError(new Exception(content));
            getChannel().send(exchange);
        } else {
            Fault fault = exchange.createFault();
            fault.setContent(new StringSource(content));
            exchange.setFault(fault);
            getChannel().sendSync(exchange);
        }
        update();
View Full Code Here


                    "CREATE.NORMALIZED.MESSAGE", LOG).toString());
                if (inMessage.getExchange().getOutFaultMessage() != null) {
                    org.apache.cxf.interceptor.Fault f = (org.apache.cxf.interceptor.Fault)
                            inMessage.getContent(Exception.class);
                    if (!(f.getCause() instanceof Error)) {
                        Fault fault = xchng.createFault();
                        fault.setContent(new DOMSource(doc));
                        xchng.setFault(fault);
                        if (!f.hasDetails()) {
                            xchng.setProperty("faultstring", f.getMessage());
                        }
View Full Code Here

                    "CREATE.NORMALIZED.MESSAGE", LOG).toString());
                if (inMessage.getExchange().getOutFaultMessage() != null) {
                    org.apache.cxf.interceptor.Fault f = (org.apache.cxf.interceptor.Fault)
                            inMessage.getContent(Exception.class);
                    if (f.hasDetails()) {
                        Fault fault = xchng.createFault();
                        fault.setContent(new DOMSource(doc));
                        xchng.setFault(fault);
                    } else {
                        xchng.setError(f);
                    }
View Full Code Here

                    "CREATE.NORMALIZED.MESSAGE", LOG).toString());
                if (inMessage.getExchange().getOutFaultMessage() != null) {
                    org.apache.cxf.interceptor.Fault f = (org.apache.cxf.interceptor.Fault)
                            inMessage.getContent(Exception.class);
                    if (f.hasDetails()) {
                        Fault fault = xchng.createFault();
                        fault.setContent(new DOMSource(doc));
                        xchng.setFault(fault);
                    } else {
                        xchng.setError(f);
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.