activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Alateras <j...@comware.com.au>
Subject Is there a problem with selectors on queues
Date Tue, 03 Jul 2007 22:22:23 GMT
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>


Mime
View raw message