Hello,
 I  have a SFTP route that takes a JMS message as input.  In the message,
there is a property that states where the local file is that needs to be
transferred.  I unmarshal the object and use the property (fileLocation) in
the exchange  In my code I do something like this:

File transferFile = new File(fileLocation); 
GenericFile gf = new GenericFile();
gf.setBody(IOConverter.toInputStream(transferFile));

exchange.getIn().setBody(gf);

This will sftp a few files, but, then starts throwing the exception stating
it cannot find a temp file with a name like
/tmp/camel-tmp-123456/cos000111222.  Why is it using this tmp file and how
do I get around this?

Thanks!
-- 
View this message in context: 
http://old.nabble.com/RuntimeCamelException-during-Sftp-tp27135447p27135447.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to