Spring FTP Inbound vs Outbound Channel Adaptor

拈花ヽ惹草 提交于 2019-12-11 05:34:31

问题


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:


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.



来源:https://stackoverflow.com/questions/22216293/spring-ftp-inbound-vs-outbound-channel-adaptor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!