Hi guys, am I right that it's not possible to use recipientList with onException?
I got exception:
From[direct:toRawDataResolver] <<< in route: Route(route5)[[From[direct:toRawDataResolver]] -> [OnExcepti... because of Route route5 has no output processors. You need to add outputs to the route such as to("log:foo").
The code I used is:

from("direct:toRawDataResolver")
    .onException(Exception.class)
        
.recipientList(simple("metrics:meter:datapoint.resolve.failure.rate.${body.dspId}"))
    .end()
    .bean(processingFacade, "handleMessage")
    
.recipientList(simple("metrics:meter:datapoint.resolve.success.rate.${body.dspId}"));


Is it any workaround, our may be I'm doing smth wrong?
Actually I can cope with problem using try-catch statement, but can I do that same using onException?
--
*Ilya Karpov*
Developer

CleverDATA
make your data clever

Reply via email to