Hi,
tested with camel 2.10.1 and 2.10.2 :
*When I turn the route :*
from("cxf:/myWebService?serviceClass=com.x.MyWebService").routeId("MyRoute")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
exchange.getOut().setBody(new Output());
}});
*into :*
from("cxf:/myWebService?serviceClass=com.x.MyWebService").routeId("MyRoute")
.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();
*Then the response body of myWebService is empty.*
Is it possible that my route returns something in a doCatch() ?
Any help would be appreciated
--
View this message in context:
http://camel.465427.n5.nabble.com/doCatch-returns-null-tp5722851.html
Sent from the Camel - Users mailing list archive at Nabble.com.