You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by James Strachan <ja...@gmail.com> on 2007/07/03 21:04:51 UTC

Re: Can you delay consuming messages on a queue by the date time?

On 5/23/07, rjj <Ri...@directline.com> 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/