camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gert Villemos <gville...@yahoo.de>
Subject How to only process messages at a specific time?
Date Thu, 17 Mar 2011 21:44:47 GMT
I would like to have an Activemq queue, where multiple publishers push data
to, and multiple subscribers pop these, in a distributed environment. Thanks
to Camel and ActiveMQ that's easy, so far.

My problem is that the message I push have a 'processing time', i.e. they
should not be processed in the order they are pushed, but in a order defined
by a header field holding the 'process time'. The 'processing time' could be
a time far in the future.

How can I do this? I cant use the resequencer, because it might put the
exchanges in the right order, but doesnt guarantee that my subscribers only
get the message when it needs to be executed. I could make the subscribers
polling, i.e. retrieve only messages that are 'due'. but I would prefer a
push model to a poll model.

--
View this message in context: http://camel.465427.n5.nabble.com/How-to-only-process-messages-at-a-specific-time-tp3905576p3905576.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message