如何使用int-ftp-spring集成向通道发送消息?
感谢您的关注,如何使用int-ftp-spring集成向通道发送消息?,spring,ftp,spring-integration,Spring,Ftp,Spring Integration,感谢您的关注, 我在ftp服务器上对ls命令使用了int ftp:outbound gateway,我想处理输出通道并分派到其他通道,我的代码是: <int:channel id="inbound1"/> <int-ftp:outbound-gateway id="gatewayLS" session-factory="ftpSessionFactory"
我在ftp服务器上对ls命令使用了
int ftp:outbound gateway
,我想处理输出通道并分派到其他通道,我的代码是:
<int:channel id="inbound1"/>
<int-ftp:outbound-gateway id="gatewayLS"
session-factory="ftpSessionFactory"
request-channel="inbound1"
command="ls"
command-options="-R"
expression="payload"
reply-channel="output"/>
<int:channel id="output">
<int:interceptors>
<int:wire-tap channel="logger"/>
</int:interceptors>
</int:channel>
如何处理输出通道并分派到其他通道,例如input1和input2?不清楚您的要求是什么;您可以添加一个
来将列表分解为各个文件,然后使用
。我建议你阅读,看看,然后当你有一个具体的问题时回到这里。感谢回复@Gary,我想将消息路由到几个通道,这些通道是独立的操作序列。这对我仍然没有帮助;请更新您的问题,清楚地解释您的问题和/或您正在尝试执行的操作。感谢您的快速回复@Gary,我想将输出通道分派到output1、output2通道,我想处理输出通道,例如DispatcherClass,以确定如何执行?抱歉,您仍不清楚要执行的操作。请用例子更详细地解释-更新问题,而不是在此处添加长评论。