There is plenty of options on deadLetterChannel to configure logging
exhausted and whatnot. Try to thinker with those.

On Fri, Nov 14, 2014 at 1:11 PM, Marco Westermann <marwesterm...@gmx.de> wrote:
> Hi all,
>
> if I have a route like this:
>
> from("timer..")
>     .bean(MyBean.class, "test")
>
>
> If I deploy that to servicemix and there is an exception in the MyBean
> class, I get an exception stack trace in servicemix.log. But if I add a
> global error handler like this:
>
> errorHandler(deadLetterChannel("activemq:failedMessages").maximumRedeliveries(2))
>
> from("timer..")
>     .bean(MyBean.class, "test")
>
> exceptions are not logged to servicemix.log anymore. I use Servicemix 4.5.2
> (Camel 2.10.6). Is there a way to use global deadLetterChannel error handler
> and also log exceptions to servicemix.log? I already tried to configure the
> deadLetterChannel by calling logStackTrace(true) but that makes no
> difference.
>
> regards, Marco



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to