camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gnanda1 <>
Subject Issue with consuming messages using jms selector
Date Mon, 19 Jul 2010 21:21:52 GMT

Hi All,
I need help with setting jms selector in camel. I am using camel 2.2 with
smx 4.2

I have messages coming to a queue with header set up as below
exchange.getIn().setHeader("wsato", wsato); //wsato value is set at runtime
to "DemoTrial" or "DemoTrial1"

I have a route defined for the consumer as below

String selector ="DemoTrial";

It is never picking up any record from the queue. From the jconsole I could
see the endpointUri definition as below

I also tried as below
from(this.retryQ+"?selector=wsato%3D'"+selector+"'") // never picking up any
from(this.retryQ+"?selector=wsato%3D"+selector+"") // always  picking up
message even if the selector does not match

Any help is greatly apprcecitaed

Thanks & Regards

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message