camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artaxerxe <>
Subject Handled on doTry... doCatch not Working as Expected
Date Tue, 15 Mar 2016 09:05:07 GMT

I have the following camel route snippet:

    <setHeader headerName="some.header">
        <constant>a value</constant>
            <simple>${header.some.check.value} == null</simple>
            <wireTap uri="direct://some-direct"/>
    <setHeader headerName="another.header">
        <constant>another value</constant>

This is the doCatch snippet from a full route. I would expect that when an
error is thrown on this route, the doCatch body to be executed and the error
to be logged in log files. The problem is that the error isn't logged in
files. Should this be the behavior? If yes, is there a default way in Camel
to log this error, even if is caught (without using a custom processor)?

Andrei Mura 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message