camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto <abros...@inogs.it>
Subject Re: Preserve some headers after splitting a collection
Date Wed, 23 Mar 2016 14:57:43 GMT

Yes, I'm sorry for the noise.
My mistake!

Alberto


On Wed, 2016-03-23 at 06:57 -0600, Quinn Stevenson wrote:
> 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