• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!