camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: <handled/>
Date Wed, 19 Jan 2011 13:54:24 GMT
On Wed, Jan 19, 2011 at 2:22 PM, Remi Malessa <> wrote:
> On 01/19/2011 10:45 AM, Claus Ibsen wrote:
>> See figure 5.5. When handled=true, the caused exception will be
>> removed from the exchange, and the route consumer will not "detect"
>> any exceptions caused processing the exchange.
>> When handled=false, the caused exception will be placed on the
>> exchange, and the route consumer will "detect" the exception and can
>> react for example by rolling back. This is consumer specific what
>> action they do on detecting an exception.
> Alright, so if there is no handle=true and no exception handling implemented
> in the
> consumer, it can even skip/ignore the message ?

Yeah most camel consumers will just log the exception. They have a
ExceptionHandler which you can customize.
However some like JMS consumer will rollback if its transacted, and
the file consumer will lave the file as is, and try it again on next
poll (it has a moveFailed option to move the file to some other
directory on rollback).

> Remi

Claus Ibsen
Twitter: davsclaus
Author of Camel in Action:

View raw message