Spring integration: download file for each update on it from FTPS server -
i using spring integration.
in remote ftps server, same file updated every time. source system not ready create new file every time.
for everyupdate of file. need download file , process it.
require create filter listen every file update.
use ftppersistentacceptoncefilelistfilter in filter
attribute , filesystempersistentacceptoncefilelistfilter
in local-filter
attribute.
these filters, persisting state lives beyond current execution, compare modified time.
however, need careful updating file server-side, rather replacing new 1 each update. entirely possible (and likely) fetch partially updated file (fetch file before writer has finished updating it).
Comments
Post a Comment