Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
jQuery in Action, 2nd edition
 
subject: JMS - How to receive specific messages (by time stamp)
 
Similar Threads
putting back into the queue the JMS messages
How to read those messages which got delayed by specified time on a JMS queue.
Security for JMS destination
Multithreaded JMS application
JMS - how to remove a message from Queue