Hi

You can use jms message selectors to filter only wanted messages.
You set these on the jms endpoint.

On Mon, Apr 28, 2014 at 7:42 PM, Jack <jrmpatw...@gmail.com> wrote:
> Hi,
>
> I¹m looking for a way to divert messages to an alternative queue based on an
> expression.
> I was hoping to use the choice mechanism for this. Something like:
>
> <choice>
> <when>
> <simple>'10' &gt; ${in.body}</simple>
> <to uri=³activemq:move.somewhere.else" />
> </when>
> </choice>
>
> The problem with this approach is that all the messages that aren¹t matched
> by the condition will get dropped.
>
> Does anyone know a way I can filter off messages and leave the remaining
> messages on the queue to be consumed by something else?
> I¹ve scoured the docs but can¹t find anything that I can see will work.
>
> Thanks for any help in advance!
>
> - Jack
>
>
>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to