On Tue, Oct 13, 2009 at 6:13 PM, jpcook <[email protected]> wrote:
>
> Hello,
>
> I was reading this page: http://camel.apache.org/exception-clause.html
>
> But I'm still not clear if you can have different exception policies for
> different configure methods in the same route? The different configure
> methods are reading from different seda queues so it seem from looking at
> the examples that this would be possible?
>

What do you mean with different configure methods?

Exception polices is scope based so you can define them
- globally
- per route

Where per route will overrule global.

So you can do

from("seda:foo").onException(MyException.class).maximumRedeliveries(3).to("bean:foo");

from("seda:bar").onException(MyOtherException.class,
MyThridException.class).maximumRedeliveries(2).redeliveryDelay(3000).to("bean:bar");


> Thanks
> --
> View this message in context: 
> http://www.nabble.com/onException-tp25875985p25875985.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to