Hi,

Hmm, can you not use a filter to filter out messages with a given Job Id.
Instead of coming up with very complex processing, a simple processor/bean
that filters out messages and pushes other messages to a sub-route for
downstream jobs/processes using a ProducerTemplate is a simple and elegant
way to do this. 

You can do whatever you like in your processor/bean and maybe send the
messages with a given JobId to a dead letter queue or handle them another
way. 

The methods you propose in your message seem way too involved, unnecessary
and complex.

Cheers,

Ashwin...


-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-stop-all-Exchanges-based-on-criteria-like-header-value-tp4735364p4735508.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to