Thank you Claus,
works like a charm!

On 24.04.2015 15:02, Claus Ibsen wrote:
Hi

You likely need to 2 x end to end the recipient list and also the
onException since its route scoped.

On Fri, Apr 24, 2015 at 1:56 PM, Ilya Karpov <[email protected]> wrote:
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