Unless I’m missing something, you should be able to just split the collection
.unmarshal( beanioFormat )
.split( body() )
<do stuff>
.end()
The exchanges should have all the headers from the original message preserved.
> On Mar 23, 2016, at 3:24 AM, Alberto <[email protected]> wrote:
>
>
> Hello,
>
> I'm unable to figure how to propagate some headers during a split.
>
> I have a route like this:
>
> ...
> .unmarshal(beeanioFormat)
> .split()
> .body()
> ...
>
> BeanIO dataformat returns a collection of pojos. I have to split this
> collection to obtain single pojos and propagate some headers present in
> the exchange to all split exchanges.
>
> Can anyone put me on the right way?
>
> Best regards
>
> Alberto