Spring integration 在spring集成的过程之后,是否有任何适配器可以删除本地文件 `在这里输入代码`

Spring integration 在spring集成的过程之后,是否有任何适配器可以删除本地文件 `在这里输入代码`,spring-integration,Spring Integration,现在,在出站通道之后,我必须返回源本地文件夹以删除本地文件,以便清理文件夹 文件:出站通道适配器将文件从源本地文件夹复制到本地错误文件夹(delete remote files=“false”) int ftp:出站通道适配器将文件从本地错误文件夹移动到远程错误文件夹 service activator应在int ftp:outbound channel adapter将文件移动到远程错误文件夹后,转到源本地文件夹以完全删除文件 有关如何向出站适配器应用建议以在完成后采取操作的示例,请参见 您似

现在,在出站通道之后,我必须返回源本地文件夹以删除本地文件,以便清理文件夹

  • 文件:出站通道适配器将文件从源本地文件夹复制到本地错误文件夹(delete remote files=“false”)
  • int ftp:出站通道适配器将文件从本地错误文件夹移动到远程错误文件夹
  • service activator应在int ftp:outbound channel adapter将文件移动到远程错误文件夹后,转到源本地文件夹以完全删除文件
  • 有关如何向出站适配器应用建议以在完成后采取操作的示例,请参见

    您似乎没有应用我在中建议的更改


    您所拥有的将不起作用-您在
    ErrorRmMv上有两个订户-他们将收到其他消息。

    是的,Gary,我已按照您的建议进行了相应的更改。现在工作正常了。谢谢你。
    <file:outbound-channel-adapter id="processingDirOutputAdapter"
        directory=""
        delete-source-files="false" 
        channel="dataFileMoveToArchiveDir" 
        >
    </file:outbound-channel-adapter>    
    
    <int-file:inbound-channel-adapter id="inErrorINPRm"
                                channel="errorRm" 
                                directory="in/error"
                                >`enter code here`
    <int:poller fixed-rate="5000" />
    </int-file:inbound-channel-adapter>
    
    <int:channel id="errorRm"/>
    <int:publish-subscribe-channel id="ErrorRmMv"/>
    
    <int-ftp:outbound-channel-adapter id="ftpError"
                                channel="ErrorRmMv" 
                                session-factory="ClientFactory"
                                auto-create-directory="true"
                                remote-directory="in/error"
                                >
    </int-ftp:outbound-channel-adapter>
    
    <int:service-activator id="cleanup" 
                            input-channel="ErrorRmMv" 
                            output-channel="nullChannel" 
                            order="3" 
                            expression="payload.delete('c:local/test/ + payload.name')"/>