camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gnanda1 <gitanjali1_na...@hotmail.com>
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";
from(this.retryQ+"?selector=wsato='"+selector+"'").routeId("routeid1")
.to("file://C:/phaseforward/workspace/servicemix4/apache-servicemix-4.2.0/data/log?fileName=output1.txt");

It is never picking up any record from the queue. From the jconsole I could
see the endpointUri definition as below
jms://queue:MM.blocked?selector=wsato%3D%27DemoTrial%27

I also tried as below
from(this.retryQ+"?selector=wsato%3D'"+selector+"'") // never picking up any
message
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
Gnanda

-- 
View this message in context: http://camel.465427.n5.nabble.com/Issue-with-consuming-messages-using-jms-selector-tp1486820p1486820.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message