camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: recursion with Camel ?
Date Tue, 02 Apr 2013 10:01:55 GMT
Hi

I suggest looking at the dynamic router eip


On Tue, Apr 2, 2013 at 10:02 AM, kikou1984 <hichem.oueslati@atos.net> wrote:
> Hi,
>
> I m trying to simulate recursion with camel, i tried with a Loop but it s
> not the reel purpose.
>
>
> public ArrayList <ArrayList <String>> simule_EclatBQE(Exchange exchange){
>
>   ArrayList<ArrayList&lt;String>> lstOflst = new ArrayList <ArrayList
> <String>>();
>   ArrayList <String> lstOne = new ArrayList <String>();
>   ArrayList <String> lstTwo = new ArrayList <String>();
>
>   lstOne.add("JE CONTIENS SORTIE A AGREGGER");
>   lstTwo.add("Je CONTIENS SORTIE A RETRAITER");
>
>   lstOflst.add(lstOne);
>   lstOflst.add(lstTwo);
>
>   exchange.getOut().setHeader("ToAggregate",1);
>   exchange.getOut().setBody(lstOflst);
>
>   return lstOflst;
>
>         }
>
> I got this Bean, I want to re loop on this processor , but the In Body
> should be the Out Body for the first iteration.
>
> Is it possible to make it with camel ?
>
> Thxs.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/recursion-with-Camel-tp5730193.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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message