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 different format. I want to avoid
doing a exchange.getOut().setBody(<read new file>) since the new file is
huge. But somehow I want to convey to the FTP producer that FTP over the new
file and not the one via message.getIn().getBody().
I tried by just setting the message header .setHeader(Exchange.FILE_NAME,
"new file path") but I think the FTP producer just does the
getIn().getBody() irrespective of the file name.
Is there a way to do this?
Thanks for your help.
--
View this message in context:
http://camel.465427.n5.nabble.com/Preventing-reading-of-a-large-XML-file-in-memory-tp5716064p5716204.html
Sent from the Camel - Users mailing list archive at Nabble.com.
.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang