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.

Reply via email to