activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject how to get message selectors working in Activemq-cpp
Date Wed, 13 Oct 2010 08:43:22 GMT

I am struggling to get message selectors to work in AMQCPP. I would 
appreciate any help I can get please.

When I put the message I say:


when I get the message I create a consumer with a selector thus:

std::string selector = "JMSCorrelationID = '" + correlationId + "'";
consumer = session->createConsumer(destination, selector);

After the put I browse the queue using the web interface and it reports 
the correlation id as what I put. Yet, when I call 
consumer->receive(timeout) it always times out. When I use a consumer with 
no selector I get the message ok.


Andrew Marlow

This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in
this e-mail is prohibited.

Please refer to
 for additional disclosures.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message