camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel: How to make camel stop processing some messages without stopping the route.
Date Tue, 15 Nov 2011 12:09:37 GMT
On Tue, Nov 15, 2011 at 12:42 PM, Mohammad Shadab Ali
<> wrote:
> Hi All,
> Is there a way to stop processing some messages, but not stopping the route?

You can use the .stop() in the DSL, or mark the exchange to stop from Java code.

        // mark the exchange to stop continue routing
        exchange.setProperty(Exchange.ROUTE_STOP, Boolean.TRUE);

> Regards,
> Shadab
> ________________________________
> ***The information transmitted is intended only for the person or entity to which it
is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination
or other use of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.***

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message