*
The moose likes EJB and other Java EE Technologies and the fly likes How to read those messages which got delayed by specified time on a JMS queue. 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 "How to read those messages which got delayed by specified time on a JMS queue." Watch "How to read those messages which got delayed by specified time on a JMS queue." New topic
Author

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

Vighnesh Mu
Greenhorn

Joined: Jan 06, 2011
Posts: 29

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

Joined: Oct 13, 2009
Posts: 73
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..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to read those messages which got delayed by specified time on a JMS queue.
 
Similar Threads
BEA 8.1 JMS Redelivery + Message Persistence
Configuring Delay in reading JMS Message
putting back into the queue the JMS messages
new to JMS , Que- what approach to take for continously listenning messages
Specifying JMS Queue size in OAS