Hi
See the simple language which has many details.
And the message history eip
http://camel.apache.org/message-history
On Mon, Dec 15, 2014 at 12:29 PM, Jeremy Gooch wrote:
> Hi,
>
> I have a generic dead letter queue handler. Before messages are put onto
> the dead letter queue, my routes log details of the exceptions (via an
> interceptor within the same context). I'd like to also stamp the messages
> with the route and context from which the exception was thrown.
>
> I could just type the correct names into every interceptor, but it would be
> nicer if I could do something like this:
>
>
> id="deadletter-logger">
> message="Dead letter interceptor invoked" />
> uri="log:org.jellyfish.notifications?level=ERROR&showCaughtException=true&showStackTrace=true&showException=true"
> />
>
>
>
>
>
>
>
>
> *
> {{camel-current-context-id}}
>
> {{camel-intercepted-route-id}}
> *
>
> You'll note that I'm already pulling in the dead letter queue name from
> config - i.e. {{dead.letter.uri}}. The magic sauce would be having
> environment variables like:-
>
>- {{camel-current-context-id}}
>- {{camel-intercepted-route-id}}
>
> Is this sort of thing available?
> I'm running Camel 2.12.3 and ActiveMQ on 5.7.0.
>
> Thanks,
>
> J.
--
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/