Hi

Its not really possible as there is no while construct.

There is a loop though, but its like a for loop where the loop counter is
hardcoded once.
We have a JIRA to improve this in the future.




On Fri, Jun 8, 2012 at 11:44 AM, Leen Toelen <[email protected]> wrote:

> Hi,
>
> I have a route like this:
>
> <camel:route>
> <from uri="timer://foo?period=30000" />
> <camel:bean ref="myReader" method="read"/>
> <camel:process ref="myProcessor"/>
> <camel:bean ref="myReader" method="delete"/>
> </camel:route>
>
> where the read() method returns a list of results, but most of the time the
> result list will be empty. I would like to configure the route so that when
> the read() method does return at least one result, the route is processed
> and continues to call read() until there are no more results.
>
> Is this possible?
>
> Regards,
> Leen
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to