【问题标题】:use an inbound VM or JMS endpoint with transactional delivery to perform retries on the outbound FTP endpoint使用带有事务传递的入站 VM 或 JMS 端点在出站 FTP 端点上执行重试
【发布时间】:2015-06-09 16:46:21
【问题描述】:

或者,您可以删除 until-successful 并使用带有事务传递的入站 VM 或 JMS 端点在出站 FTP 端点上执行重试。

能否请您提供有关此 VM 的示例?

这与以下问题有关

【问题讨论】:

    标签: mule mule-studio mule-component mule-el mule-cluster


    【解决方案1】:

    试试下面的方法怎么样

    <flow name="transactionalVM">
        <vm:inbound-endpoint path="orders" exchange-pattern="one-way">
            <vm:transaction action="ALWAYS_BEGIN"/>
         </vm:inbound-endpoint>
         <file:outbound-endpoint ref="receivedOrders"/> <!-- replace this with your FTP endpoint -->
    </flow>
    

    查看Mule中的transaction management,了解如何控制重试次数,现在它会无休止地尝试

    现在,如果您想知道出站文件如何成为事务的一部分,请查看this(配置提示和技巧)和this,提示here

    【讨论】:

    • 它会在 3.4.2 中工作吗?我还需要使用带有重新连接参数的 FTP 连接器引用吗?
    • 好问题我的理解是重新连接参数仅适用于入站端点。是的,我认为它也应该与 3.4.2 一起使用(我没有测试过它,但没有理由相信相反)。我进行了更详细且可能令人困惑的讨论here
    • 我要的是出站 FTP。你能确认一下它是否有效吗?
    • 发布后续问题,以防您在实施过程中遇到问题
    • 重新连接参数不适用于作为连接器引用属性提供的出站 FTP。它没有重试..你能提供解决方案吗
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-14
    • 1970-01-01
    • 2014-01-26
    • 2013-10-16
    • 2014-11-09
    相关资源
    最近更新 更多