camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Spliter in Camel
Date Wed, 26 Oct 2011 20:37:51 GMT
It depends... ;-)
If you use XPath to split the file, the entire XML document is loaded into
memory (that's the way how XPath works :-( ).
If you use a line tokenizer (e.g. \n) to split the message, you can chose to
stream the file.

[1] http://camel.apache.org/splitter.html

Best,
Christian

On Wed, Oct 26, 2011 at 9:52 PM, ebinsingh <
ebenezer.singh@verizonwireless.com> wrote:

> Hi,
>
> I have a file of 300,000 records and i use the split mechanism of Camel to
> split them and sends each record to a processer.
> Does Camel store these records on a heap or somewhere before it sends them
> to the processer. How does Camel splitter internally work.
>
> I want to make sure that the Splitter does not eat up the memory.
>
> Please provide some insight into this.
>
> Thanks & regards,
> Ebe
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Spliter-in-Camel-tp4940967p4940967.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message