how to dispatch message to channels with int-ftp s

2019-05-30 10:03发布

thanks for attention,
i used int-ftp:outbound-gateway to ls command on ftp server , i want to process output channel and dispatch to other channel , my code is:

<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>

how proccess output channel and dispatch to other channel for example input1 and input2?

0条回答
登录 后发表回答