4 Replies Latest reply: Aug 2, 2012 9:15 AM by Eduardo de Vera Toquero RSS

Camel RouteBuilder onException statement

Eduardo de Vera Toquero Newbie

Does anybody know if the onException construct for the RouteBuilder is available for Switchyard Camel RouteBuilder based Services? I would need to use it in order to leverage the functionality of the retry mechanism. I have something like this in my route builder's configuration method:

 

 

onException(MyException.class)
                .maximumRedeliveries(numberOfTimes);

 

But it doesnt seem to work at all even if I see the exception ocurring in the log.

 

Is this Camel feature supported?