RE: Preventing reading of a large XML file in memory

2012-07-19 Thread vishal1981
-node+s465427n5716226...@n5.nabble.com] Sent: Wednesday, July 18, 2012 10:10 PM To: Vishal Changrani Subject: Re: Preventing reading of a large XML file in memory Hi, How did you process the old file? Maybe you need some file cache to avoid loading the whole XML file into the memory. On 7/18/12 10

Re: Preventing reading of a large XML file in memory

2012-07-18 Thread Willem Jiang
Hi, How did you process the old file? Maybe you need some file cache to avoid loading the whole XML file into the memory. On 7/18/12 10:52 PM, vishal1981 wrote: Hi, Sorry to bug you again...but.. Now I have my route configuration as File -> MyBean ->Ftp Now MyBean converts the input file to a

RE: Preventing reading of a large XML file in memory

2012-07-18 Thread vishal1981
ks for your help. From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5716115...@n5.nabble.com] Sent: Monday, July 16, 2012 2:54 PM To: Vishal Changrani Subject: Re: Preventing reading of a large XML file in memory Sorry it was the ftp endpoint i meant On Monda

RE: Preventing reading of a large XML file in memory

2012-07-18 Thread vishal1981
Hi, Sorry to bug you again...but.. Now I have my route configuration as File -> MyBean ->Ftp Now MyBean converts the input file to a different format. I want to avoid doing a exchange.getOut().setBody() since the new file is huge. But somehow I want to convey to the FTP producer that FTP over the n

RE: Preventing reading of a large XML file in memory

2012-07-16 Thread vishal1981
sweet..thanks a ton! From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5716143...@n5.nabble.com] Sent: Tuesday, July 17, 2012 1:10 AM To: Vishal Changrani Subject: Re: Preventing reading of a large XML file in memory On Tue, Jul 17, 2012 at 6:47 AM

Re: Preventing reading of a large XML file in memory

2012-07-16 Thread Claus Ibsen
Claus Ibsen-2 [via Camel] > [mailto:ml-node+s465427n5716140...@n5.nabble.com] > Sent: Tuesday, July 17, 2012 12:43 AM > To: Vishal Changrani > Subject: Re: Preventing reading of a large XML file in memory > > On Tue, Jul 17, 2012 at 6:18 AM, vishal1981 > <[hidden email]&g

RE: Preventing reading of a large XML file in memory

2012-07-16 Thread vishal1981
reading the whole file in memory? From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5716140...@n5.nabble.com] Sent: Tuesday, July 17, 2012 12:43 AM To: Vishal Changrani Subject: Re: Preventing reading of a large XML file in memory On Tue, Jul 17, 2012 at 6

Re: Preventing reading of a large XML file in memory

2012-07-16 Thread Claus Ibsen
nputStream, InputStream etc. > > > From: Claus Ibsen-2 [via Camel] > [mailto:ml-node+s465427n5716115...@n5.nabble.com] > Sent: Monday, July 16, 2012 2:54 PM > To: Vishal Changrani > Subject: Re: Preventing reading of a large XML file in memory > &g

RE: Preventing reading of a large XML file in memory

2012-07-16 Thread vishal1981
ean? Is there something similiar for File component? From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5716115...@n5.nabble.com] Sent: Monday, July 16, 2012 2:54 PM To: Vishal Changrani Subject: Re: Preventing reading of a large XML file in memory Sorry it

Re: Preventing reading of a large XML file in memory

2012-07-16 Thread Claus Ibsen
Sorry it was the ftp endpoint i meant On Monday, July 16, 2012, vishal1981 wrote: > Thanks for the reply. > So is it compulsory to use a JMS Endpoint to prevent Camel from reading the > whole message in memory? > What is to my bean I dont pass the message body as a parameter but just > then > fil

Re: Preventing reading of a large XML file in memory

2012-07-16 Thread vishal1981
Thanks for the reply. So is it compulsory to use a JMS Endpoint to prevent Camel from reading the whole message in memory? What is to my bean I dont pass the message body as a parameter but just then filename? Will that prevent Camel from loading the whole message in memory before calling my bean m

Re: Preventing reading of a large XML file in memory

2012-07-16 Thread Claus Ibsen
Hi Use the localWorkDirectory option on the JMS endpoint to stream directly to a file when downloading the ftp file. Then the message body is a GenericFile type (also a org.apache.camel.WrappedFile from Camel 2.9 onwards) where you can access the file using a stream etc. So if you want to from