camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From igor <agr...@mail.ru>
Subject How to dynamycally load file from ftp during route processing?
Date Tue, 15 Dec 2015 12:07:49 GMT
I have a queue that accepts messages with file names, files are stored on
ftp.
The question is how to load the file during message processing?

E.g. I have route like this:

 from(getProcessorQueueName())
                .setProperty(FILE_NAME,body())
                // what should I call here so camel goes to ftp and
downloads specific file for me?
                .process(parseFileNameProcessor)
                .process(storeFileProcessor)

I tried recipientList call with ftp expression (e.g.
ftp://user@host?password=pass&fileName=file.txt&move=done&moveFailed=error),
but it looks like this is trying to store file instead of download it.

Thanks in advance, Igor.



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-dynamycally-load-file-from-ftp-during-route-processing-tp5775082.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message