I am experiencing some problems with message selectors and was wondering whether there is known issue in activemq and queue message selectors.

Prior to publishing a message on a queue i set the propA property

message.setIntProperty("propA ", zone.getZoneNumber());


On the consumer side i do

QueueSession session = connection.createQueueSession(true,
        session.AUTO_ACKNOWLEDGE);
String selector =  "propA = " + obj.getPropA();
QueueReceiver receiver = session.createReceiver(queue, selector);
msg = receiver.receiveNoWait();

I publish a message on the queue but the consumer does not receive it.


cheers
</jima>

Reply via email to