On Fri, Aug 12, 2011 at 6:48 PM, jeevan.koteshwara
<[email protected]> wrote:
> Sorry, I didnt see your reply...
>
> Thanks. Its appending the messages to the file now. Is there any ways to
> append the messages first and then write to the destination (I mean without
> using fileExist=Append, somewhere after the completion of split process)??
>

Its best to append to a file as you wont have to keep all data in memory.

However you can provide a custom AggregationStrategy to the Splitter
EIP where you can append the message how you like it, and then
afterwords send it to the file.

See example on wiki pages
http://camel.apache.org/splitter

If you got the Camel book then chapter 8 covers this in better detail.



> Thanks,
> Jeevan.
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Split-large-file-into-small-files-tp4678470p4693983.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to