Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read those messages which got delayed by specified time on a JMS queue.

 
Vighnesh Mu
Greenhorn
Posts: 29
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I developed a JMS queue on websphere and it will recieve some messages on it by some other process. I want to check the queue every 5 minutes for those messages which are in the queue for more than specified time say 30 seconds. Can anybody help me on this,like how can I accomplish this? Currently I can read all messages on queue,but I want only the delayed messages on the queue.

Thanks,
Vighnesh
 
Pallav Bora
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may be able to write a rule where by all th eexpired messages will be written to a different queue. Now the other queue will only have expired messages. And the expired messages will be deleted from the first queue by the rule..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic