activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Can you delay consuming messages on a queue by the date time?
Date Tue, 03 Jul 2007 19:04:51 GMT
On 5/23/07, rjj <Rick.Jones@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/

Mime
View raw message