Spring FTP Inbound vs Outbound Channel Adaptor

2019-08-04 23:50发布

What is the difference between Inbound Channel Adaptor and Outbound Channel Adaptor in Spring Integration FTP. Which one I should I use and when?

I read from documentation that outbound can send any type of file(like byte[], String, java.io.File) but Inbound is restricted for File type only. Is that only difference or anything else?

1条回答
唯我独甜
2楼-- · 2019-08-05 00:27

I suggest you to read a theory first of all.

Any Inbound adapter is intended to get data from external system. Outbound - to put data. E.g. simple case: JDBC Inbound performs a SELECT from DB, Outbound - INSERT.

In case of FTP: the first one to read files from FTP, the last - to write them.

查看更多
登录 后发表回答