On 5/23/07, rjj <[EMAIL PROTECTED]> wrote:
Hi, Can you delay consuming messages on a queue by the date time? I would like to place a message on a queue but not have it consumed until a certain time in the system is reached in the future. Say for example 5 mins into the future. I do not want to hold onto the message for 5 mins before sending say in a thread.sleep method and then send it for consuming. I require the message to be already sent and placed on the queue. Until it reached it's delivery time and then was consumed.
This is now possible using the Delayer pattern in Camel... http://activemq.apache.org/camel/delayer.html either delay based on the JMSTimestamp - or add your own custom header for the delivery time. -- James ------- http://macstrac.blogspot.com/