On Mon, Feb 4, 2013 at 4:35 PM, kikou1984 wrote:
> I tried this one :
>
>
> .split()
> .method(myClass, "methodTosplit")
> .choice().when().simple("${property.CamelSplitIndex} == 2")
> .bean(myClassA, "methodA")
> .otherwise()
>.bean(myClassB, "methodB");
>
>
> it works.
>
> if you got a be
I tried this one :
.split()
.method(myClass, "methodTosplit")
.choice().when().simple("${property.CamelSplitIndex} == 2")
.bean(myClassA, "methodA")
.otherwise()
.bean(myClassB, "methodB");
it works.
if you got a better idea let me know thxs.
For each split, the body change by creati
Hi
You can use the content based router to route to bean A or bean B
depending on some predicate.
eg like if ... else ...
On Mon, Feb 4, 2013 at 2:54 PM, kikou1984 wrote:
> Hi,
>
> I want to know if i can configure a splitter.
> Here an exemple :
>
> public static ArrayList > methodTosplit(@Hea