On Tue, Sep 25, 2012 at 9:36 PM, anupamsen <anupam...@yahoo.com> wrote:
> For the time being, I am using a consumer template to fetch n number of
> messages in the *periodicallyPolledInputHandler* processor triggered from
> the quartz and pushing it to the originating queue using a producer
> template.
>

Yeah this is a doable approach.

> Is there a better way of doing this?
>

Not really as the control structure in the DSL would not support this easily.

eg its kinda like a while loop while there is more messages to poll.

while(more) {
   message = poll message
   do stuff
}

The loop DSL does not support a "while" structure.

And pollEnrich is single message only.
We had looked into making pollEnrich support multiple message (batch
like) but that causes other problems.



>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-To-implement-a-periodically-polled-queue-tp5719920p5719975.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to