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.
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();
>
>
>
> --
>
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
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
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
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
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
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
.465427.n5.nabble.com/endDoTry-tp5734513p5734640.html
Sent from the Camel - Users mailing list archive at Nabble.com.
,
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.
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
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()
12 matches
Mail list logo