I have a very simple ActiveMQ message consumer that's created in C# as follows:
using(IMessageConsumer consumer = session.CreateConsumer(destination,"NMSCorrelationID='<value of correlation id>'")){
/* This Receive(..) operation does not retrieve the message with the correlation id which I confirmed to be available on the queue. */
IMessage message = consumer.Receive(new TimeSpan(1000));
}
However, I can get the message if I don't use the selector while creating the consumer. The destination is a queue on the ActiveMQ broker. I've tried using CorrelationID and JMSCorrelationID as the selectors, but none on them worked. The ActiveMQ broker was installed with out-of-the-box settings. Is there any special setting that I need to use for the selectors to work?