JMSTimestamp as Message Selector
843830Feb 9 2006 — edited Feb 13 2006public QueueReceiver createReceiver(Queue queue,
java.lang.String messageSelector)
I have a requirement , pull all the message which are older than 30 minutes. To implement this I want to use JMSTimestamp as message Selector. But it looks like it is not working
long _cutoftime = System.CurrentTimeMills - (30*60*1000)
String selector = "JMSTimestamp < ' " + cutoftime +' '";
After that I am calling the following API.
createReceiver(Queue queue, java.lang.String messageSelector)
It is pulling all the records, It is not filtering the messages which are created in the last 30 Mins. Am I missing anything.
Shri