Hi again,

I solved the problem by changing my route to this:

from("cxf:/myWebService?serviceClass=com.x.MyWebService").routeId("MyRoute")
*.recipientList(simple("direct:${header.operationName}"));*

*from("direct:myOperation")*
  .doTry()
    .process(new Processor() {
       @Override
        public void process(Exchange exchange) throws Exception {
           throw new IllegalStateException();
        }});
  .doCatch(IllegalStateException.class)
    .process(new Processor() {
        @Override
        public void process(Exchange exchange) throws Exception {
            exchange.getOut().setBody(new Output());
        }});
  .end();

I think we have a bug here because 'myWebService' has only 1 operation, so
the 'dispatch' step should not be necessary.




--
View this message in context: 
http://camel.465427.n5.nabble.com/doCatch-returns-null-tp5722851p5723008.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to