Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用int-ftp-spring集成向通道发送消息?_Spring_Ftp_Spring Integration - Fatal编程技术网

如何使用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,以确定如何执行?抱歉,您仍不清楚要执行的操作。请用例子更详细地解释-更新问题,而不是在此处添加长评论。