Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

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?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic