This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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
 
 
subject: JMS - How to receive specific messages (by time stamp)