Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMSTimestamp as Message Selector

843830Feb 9 2006 — edited Feb 13 2006
public 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2006
Added on Feb 9 2006
1 comment
1,406 views