On Thu, Aug 12, 2010 at 10:33 AM, somemightsay <euanbeg...@hotmail.com> wrote:
>
> I've been looking into this for quite a while but still haven't been able to
> find a definitive answer.
>
> How do you add error handling to a route such as the following:
>
> from("inputdir")
> .startupOrder(1)
> .setBody(constant(query))
> .to("jdbc:vprsitdb")
> .marshal(csv)
> .to("TargetDir");
>
> Obviously you can't add normal throw/catch exceptions like you would with
> normal java code. I would like to have error handling for the likes of the
> database not being available (in that case retry connection 3 times etc),
> the input file not being present etc.
>
> Any help would be appreciated.
>

See this link
http://camel.apache.org/error-handling-in-camel.html

And if fell the online documentation is not sufficient then consider
the Camel in Action book.
The entire chapter 5 is devoted to error handling.

>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Error-Handling-in-Camel-routes-tp2472989p2472989.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to