camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Periodic queue consumer
Date Mon, 02 Feb 2015 04:51:05 GMT
I think the polling consumer[1] can meet your needs. Now you may need to implement the polling
consumer for your queue.


Willem Jiang

Red Hat, Inc.
Blog: (English) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On January 31, 2015 at 7:32:08 AM, James Green ( wrote:
> We have a need to route message to a temporary location and to re-submit
> them every n seconds.
> We're thinking of sending the message to a queue if a later re-try is
> needed.
> A separate process would then be required to read from the queue and
> re-submit. This is fine but clearly listening on a queue is normally a
> constant process, so out of the box we'd get the message intended for
> re-try immediately and send it onwards for re-trying without any delay.
> It would be nice therefore to "wake up" a queue consumer after some sleep
> interval. Lets the background processes run that caused the need for a
> re-try.
> Any good way of achieving this?
> [ We have tried pushing them into a database and periodically pulling them
> back out into the main process again, but we're hitting
> ConcurrentModificationExceptions which are proving difficult to understand.
> ]
> Thanks,
> James

View raw message