Instead of doTry doCatch then just use an onException in the route. On Tue, Nov 12, 2013 at 11:35 AM, kamranzafar <[email protected]> wrote: > 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.
-- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
