Yes, it is. :-)
You should return an Iterator. If your file is XML, you may interested in
this improvement: https://issues.apache.org/jira/browse/CAMEL-3998

If you file is a normal text file which you can split after the line feed,
you can write:
    from("...")
        .split(body().tokenize("\n")).streaming()
            .to("...");

Best,
Christian

Reply via email to