FAQ
Thanks Claus.
But would that not stop the route itself? I just need to stop processing few messages, not stopping the route though?

Regards,
Shadab





-----Original Message-----
From: Claus Ibsen
Sent: Tuesday, November 15, 2011 5:40 PM
To: users@camel.apache.org
Subject: Re: Camel: How to make camel stop processing some messages without stopping the route.
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
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

***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.***

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 6 | next ›
Discussion Overview
groupusers @
categoriescamel
postedNov 15, '11 at 11:42a
activeNov 15, '11 at 12:44p
posts6
users4
websitecamel.apache.org

People

Translate

site design / logo © 2022 Grokbase