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 Wed, 23 May 2007 16:53:21 GMT
On 5/23/07, rjj <Rick.Jones@directline.com> wrote:
> Hi,
> Can you delay consuming messages on a queue by the date time?

Its a feature requested but we've not yet implemented it...
http://issues.apache.org/activemq/browse/AMQ-451


> 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.

You can place it on the queue, then you could create a consumer in 5
minutes time to consume it but its not ideal.

To consume '5 minutes old' messages, you could use a selector to
filter old-enough messages; then every (say) minute close & recreate
the consumer with a new selector.

Or you could use something like this to poll from the queue
http://activemq.apache.org/camel/quartz.html

-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message