Hi there,
you need to pass the "=" as "%3D" as stated in the component docs.
See:
http://camel.apache.org/jms.html
So it would be:
from("activemq:queue:somequeue?selector=clientid %3D
'someid'").to(someOtherQueue)
Bye,
Norman
Am 20.10.2010 22:19, schrieb Hossein:
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