camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quinn Stevenson <qu...@pronoia-solutions.com>
Subject Re: Preserve some headers after splitting a collection
Date Wed, 23 Mar 2016 12:57:32 GMT
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 <abrosich@inogs.it> 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


Mime
View raw message