Check the unit tests of camel-jms to see some samples.

On Thu, Oct 21, 2010 at 7:22 AM, Norman <[email protected]> wrote:
>  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
>>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to