File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes JMS - How to receive specific messages (by time stamp) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS - How to receive specific messages (by time stamp) " Watch "JMS - How to receive specific messages (by time stamp) " New topic
Author

JMS - How to receive specific messages (by time stamp)

Ruvik Azar
Greenhorn

Joined: Nov 11, 2003
Posts: 1
Hi,
I need to receive messages from a queue, but only ones that were sent in a specific time stamp (e.g. more than ten minutes ago).
i have the methods receive or receiveNoWait, but I dont know how to filter the messages according to the time they were posted.
(I dont want to receive all the messages or the next message in the queue, instead, i want to empty all the old messages from the queue and leave only the new ones.)
How do I do that?
Thanks,
Ruvik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS - How to receive specific messages (by time stamp)