camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: JMS filtering based on selector
Date Wed, 20 Oct 2010 20:31:58 GMT
Hi Hossein,

Before Camel 2.3.0, we don't support the selector in CamelConsumerTemplate.

Anyway the selector option is an SQL92 predicate. Some character such as 
= should be encoded as %30 to be interpreted by Camel.

Regards
JB

On 10/20/2010 10:19 PM, Hossein wrote:
>
> Hello,
>
> Using camel 2.2, I'm attempting to select only certain messages from queue
> using the following:
>
> from("activemq:queue:somequeue?selector=clientid='someid'").to(someOtherQueue)
> where
> clientid was set using: exchange.getOut().setHeader("clientid", "someid")
>
> Is above correct? For some reason, I don't get the filtered message and the
> result is camel return ALL messages of the initial queue?
>
> Thanks.
> ---
> Hossein Amerkashi
>

Mime
View raw message