Just tried it with end() on split but still doesn't work. Still gives the
same exception.
from("jpa:org.example.SystemProperty?consumeDelete=true&consumer.namedQuery=ControlProductLoadTrigger")
.routeId(getClass().getSimpleName()).doTry().process(new Processor()
{
@Override
public void process(Exchange exchange) throws Exception {
List<Product> products = fetchProducts();
exchange.getIn().setBody(products);
}
}).split(body()).to("jpa:org.example.Product")*.end().*endDoTry().doCatch(Throwable.class)
.transform().simple("${exception.message}").log(LoggingLevel.ERROR,
"${body}").end();
--
View this message in context:
http://camel.465427.n5.nabble.com/endDoTry-problem-tp5543541p5743093.html
Sent from the Camel - Users mailing list archive at Nabble.com.