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