I don't think the best way to accomplish this you should rely on Camel. Consider reading this webpage:
http://activemq.apache.org/delay-and-schedule-message-delivery.html <http://activemq.apache.org/delay-and-schedule-message-delivery.html>Cheers, Bruno Borges www.brunoborges.com.br +55 21 76727099 "The glory of great men should always be measured by the means they have used to acquire it." - Francois de La Rochefoucauld On Thu, Mar 17, 2011 at 6:44 PM, Gert Villemos <gville...@yahoo.de> wrote: > 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. >