On Wed, Feb 27, 2013 at 11:38 PM, Jean Francois LE BESCONT
<jflebesc...@gmail.com> wrote:
> Hey all !
>
> I have read the document by I have not really understand which component
> should I use if I want to "unsplit" all message. I think that aggregate (
> and aggregate2 ) are their for that but I don't understand how to use it.
> The documentation says :
>
> "If you want to aggregate all messages into a single message, just use a
> constant expression."
>
> It is a little but obscur for me... what should I write instead of ???? :
>
> from("file://C:/Temp/camel/test/?noop=true") .split(body().tokenize("\n"))
> // [ BUSINESS TASKS] // ???? //
> .to("file://C:/Temp/camel/test?fileName=out.csv") // .end();
>
> Thanks for read this message even if you don't solve it :)
>
> JF

I suggest to study the EIPs
http://camel.apache.org/eip

There is the composed message processor EIP which looks a bit what you are doing
http://camel.apache.org/composed-message-processor.html

Notice that this eip can run in to modes (splitter + aggregator or in
splitter only mode).
The latter is often easier to use.

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

Reply via email to