You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Frank <fd...@gmail.com> on 2012/02/18 04:01:36 UTC

Iterating beans in the route

Hi, 

I have a route consists of four different beans. I want to iterate the third
and fourth bean for 'x' number of times. How can I do this in a loop? Anyone
please help me. 

Thanks, 
Frank

--
View this message in context: http://camel.465427.n5.nabble.com/Iterating-beans-in-the-route-tp5494610p5494610.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Iterating beans in the route

Posted by Claus Ibsen <cl...@gmail.com>.
There is also the loop EIP
http://camel.apache.org/loop

Its like a fixed loop, it cannot do a while loop. For that you can use
the dynamic router.
We may in the future support a while loop behavior.


On Sat, Feb 18, 2012 at 5:07 AM, surya aditya <su...@gmail.com> wrote:
> Quick answer would be to look into Dynamic Router Integration Pattern
> offered by Camel.
> You can follow the link below and see if it rings a bell.
>
> http://camel.apache.org/dynamic-router.html
>
> peace,
>
> On Fri, Feb 17, 2012 at 10:01 PM, Frank <fd...@gmail.com> wrote:
>
>> Hi,
>>
>> I have a route consists of four different beans. I want to iterate the
>> third
>> and fourth bean for 'x' number of times. How can I do this in a loop?
>> Anyone
>> please help me.
>>
>> Thanks,
>> Frank
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Iterating-beans-in-the-route-tp5494610p5494610.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: Iterating beans in the route

Posted by surya aditya <su...@gmail.com>.
Quick answer would be to look into Dynamic Router Integration Pattern
offered by Camel.
You can follow the link below and see if it rings a bell.

http://camel.apache.org/dynamic-router.html

peace,

On Fri, Feb 17, 2012 at 10:01 PM, Frank <fd...@gmail.com> wrote:

> Hi,
>
> I have a route consists of four different beans. I want to iterate the
> third
> and fourth bean for 'x' number of times. How can I do this in a loop?
> Anyone
> please help me.
>
> Thanks,
> Frank
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Iterating-beans-in-the-route-tp5494610p5494610.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>