This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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


Win a copy of Java 8 in Action this week in the Java 8 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)
 
Similar Threads
How to read those messages which got delayed by specified time on a JMS queue.
Security for JMS destination
JMS - how to remove a message from Queue
putting back into the queue the JMS messages
Multithreaded JMS application