Hi

See this EIP
http://camel.apache.org/composed-message-processor.html

On Thu, Nov 29, 2012 at 11:27 PM, Oliver Geisser
<[email protected]> wrote:
> Hello,
>
> I am using a splitter to handle a big txt file (streaming mode). I need to
> combine the first line
> with all the other lines and store each result into a database.
>
> What is a good Camel solution for this?
>
> Example input file:
>
> Hello
> A
> B
> C
> ...
>
>
> This needs to be combined into:
>
> Hello A
> Hello B
> Hello C
> ...
>
> Every result is stored into a database.
> It's important to use streaming because of the size of the input file.
>
>
> My first idea was to use a Splitter and then store the first line into an
> Exchange property.
> But this does not work because the Splitter creates new Exchanges for every
> line.
>
> So how do I combine the first line with all the other lines?
>
> Thanks
> Oliver
>
> --
> og



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to