Re: endDoTry() problem

2013-11-12 Thread kamranzafar
Thanks, this is now working with global onException. -- View this message in context: http://camel.465427.n5.nabble.com/endDoTry-problem-tp5543541p5743110.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: endDoTry() problem

2013-11-12 Thread Claus Ibsen
nge.getIn().setBody(products); > } > }).split(body()).to("jpa:org.example.Product")*.end().*endDoTry().doCatch(Throwable.class) > .transform().simple("${exception.message}").log(LoggingLevel.ERROR, > "${body}").end(); > > > > -- >

Re: endDoTry() problem

2013-11-12 Thread kamranzafar
Override public void process(Exchange exchange) throws Exception { List products = fetchProducts(); exchange.getIn().setBody(products); } }).split(body()).to("jpa:org.example.Product")*.end().*endDoTry().doCatch(Throwable.class) .transform().simpl

Re: endDoTry() problem

2013-11-11 Thread Claus Ibsen
You need to end the split also. On Mon, Nov 11, 2013 at 6:56 PM, kamranzafar wrote: > Thanks for replying, doTry is there in the route. The only reason I used > "endDoTry" is because I need to split the exchange body before persistence. > It won't let me use split with

Re: endDoTry() problem

2013-11-11 Thread kamranzafar
Thanks for replying, doTry is there in the route. The only reason I used "endDoTry" is because I need to split the exchange body before persistence. It won't let me use split without "endDoTry". from("jpa:org.example.SystemProperty?consumeDelete=true&consumer.na

Re: endDoTry() problem

2013-11-11 Thread Claus Ibsen
endDoTry() is only needed in some cases if you use doTry .. doCatch. And you must have a doTry, which you do NOT have. On Mon, Nov 11, 2013 at 6:17 PM, kamranzafar wrote: > Hi I am having the same issue in camel version 2.10.2. The route below throws > exception &g

Re: endDoTry() problem

2013-11-11 Thread kamranzafar
ide public void process(Exchange exchange) throws Exception { List products = fetchProducts(); exchange.getIn().setBody(products); } }).split(body()).to("jpa:org.example.Product").endDoTry().doCatch(Throwable.class) .transform().simple("${exception.mess

Re: endDoTry

2013-06-24 Thread cgiera
My last post is nonsense, I have looked at the wrong object. When I change the endDoTry() to it is working again. I'm not sure if I should apply a patch for this, pls let me know if so. kind regards, Christoph -- View this message in context: http://camel.465427.n5.nabble.com/end

Re: endDoTry

2013-06-24 Thread cgiera
.465427.n5.nabble.com/endDoTry-tp5734513p5734640.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: endDoTry

2013-06-24 Thread cgiera
, Christoph -- View this message in context: http://camel.465427.n5.nabble.com/endDoTry-tp5734513p5734638.html Sent from the Camel - Users mailing list archive at Nabble.com.

endDoTry

2013-06-21 Thread cgiera
Hello, I'm upgrading from camel 2.6.0 to 2.11.0. It's a big step as 2.6.0 is pretty old. However some of our routes don't start anymore because of the exception: The route looks like the following: Should I just remove the endDoTry() or is there another possibility? kind reg

endDoTry() problem

2012-03-07 Thread XiaoPeng Li
Hi, I had some problems when I tried "endDoTry()" in my RouteBuilder. Here are the codes: from("timer://myTimer?period=2000").setBody() .simple("Current time is ${header.firedTime}").doTry()