This may be a silly question, but maybe adding the streaming() method (I
think it goes on the split) might help?  It's possible the single load into
memory before doing the splitting, is slowing it down.  I found this link
helpful, in case you haven't seen it:

http://www.catify.com/2012/07/09/parsing-large-files-with-apache-camel/

Regards,
Ryan


On Mon, Mar 4, 2013 at 3:59 PM, Jean Francois LE BESCONT <
jflebesc...@gmail.com> wrote:

> I have try to us BodyInAggregatingStrategy in [????] :
>
> .aggregate(header("CamelFileName"), new
> BodyInAggregatingStrategy()).completionTimeout(3000)
>
> But it is also slow ... 12 000 lines in 20 seconds, not possible for a
> mediation system...
>
>
> 2013/3/4 jeff <jflebesc...@gmail.com>
>
> > Thks Claus for the answer, but I have not found the simplest way to do a
> > simple:
> >
> >                 from("file://input")
> >                                 .split()
> >                                 .tokenize("\n")
> >                                 .unmarshal
> >                                 .bindy(BindyType.Csv, AED.class)
> >                                 .bean(AEDProcessor.class,
> "processTicket")
> >                                 .marshal()
> >                                 .bindy(BindyType.Csv, AEDResult.class)
> >                                 [?????]
> >
> .to("file://output?fileName=${file:name}")
> >
> > The only way I found is to do a :
> >
> > .to("file://output?fileName=${file:name}&fileExist=Append")
> >
> > But it is too slow !
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.com/Opposite-of-split-tp5728255p5728481.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>

Reply via email to