camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Write enriched data after a split in a file
Date Fri, 08 Mar 2013 14:18:40 GMT
On Fri, Mar 8, 2013 at 2:39 PM, jeff <jflebescont@gmail.com> wrote:
> the more performante way looks to do :
>
>        from("file://C:/Temp/camel/input_test/?noop=true")
>               .split()
>               .tokenize("\n")
>                      // Business lock with possible reject / enrich etc ...
>                      .streaming()
>
> .to("stream:file?fileName=C:/Temp/camel/output_test/out.csv")
>                 .end()
>        .end();
>
> But the stream is not closed ... Please help, I have to finish my proof of
> concept ! :)
>

We should improve the stream:file to be able to auto close when it
detects the splitter is done, as we have a completed property on the
exchange to tell us.

Fell free to log a JIRA ticket, then we can add an option on stream:file

"stream:file?fileName=C:/Temp/camel/output_test/out.csv&closeOnDone=true"

Just have to figure out a good name for the option.


> Thanks
>
> JF
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Write-enriched-data-after-a-split-in-a-file-tp5728761p5728829.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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

Mime
View raw message