Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Ruvik Azar
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!