On 5/23/07, rjj <[EMAIL PROTECTED]> 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/

Reply via email to