You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Pavel <pa...@gmail.com> on 2009/12/21 16:21:36 UTC

Per-component error handling

Hi,

Is subj still possible? My specific case is that I want to forward message
to DLQ if error happened in JAXB unmarshaller, but redeliver for everything
else.
In Camel 2.0 it was possible to supply error handler reference to
<camel:unmarshal /> (spring DSL), but that's not the case.

For reference, route is activemq -> unmarshal -> bean -> marshal ->
(reply-to destination)

Thanks,
Pavel

Re: Per-component error handling

Posted by Pavel <pa...@gmail.com>.
Makes sense. Thanks.

On Mon, Dec 21, 2009 at 5:25 PM, Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> Use doTry .. doCatch and move the messages yourself to DLQ.
>
> It was just way to complex to have per processor individual error handling.
> So now its two scoped: per context and per route
>
>
> On Mon, Dec 21, 2009 at 4:21 PM, Pavel <pa...@gmail.com> wrote:
> > Hi,
> >
> > Is subj still possible? My specific case is that I want to forward
> message
> > to DLQ if error happened in JAXB unmarshaller, but redeliver for
> everything
> > else.
> > In Camel 2.0 it was possible to supply error handler reference to
> > <camel:unmarshal /> (spring DSL), but that's not the case.
> >
> > For reference, route is activemq -> unmarshal -> bean -> marshal ->
> > (reply-to destination)
> >
> > Thanks,
> > Pavel
> >
>
>
>
> --
> 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
>



-- 
Best regards,
Pavel

Re: Per-component error handling

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Use doTry .. doCatch and move the messages yourself to DLQ.

It was just way to complex to have per processor individual error handling.
So now its two scoped: per context and per route


On Mon, Dec 21, 2009 at 4:21 PM, Pavel <pa...@gmail.com> wrote:
> Hi,
>
> Is subj still possible? My specific case is that I want to forward message
> to DLQ if error happened in JAXB unmarshaller, but redeliver for everything
> else.
> In Camel 2.0 it was possible to supply error handler reference to
> <camel:unmarshal /> (spring DSL), but that's not the case.
>
> For reference, route is activemq -> unmarshal -> bean -> marshal ->
> (reply-to destination)
>
> Thanks,
> Pavel
>



-- 
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