This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
JMS - How to receive specific messages (by time stamp)
posted 12 years ago
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