【问题标题】:Mule 3.2 Flow Initialization in a specific orderMule 3.2 按特定顺序进行流初始化
【发布时间】:2013-02-07 14:59:29
【问题描述】:

我在 mule 中有两个流程。我想让其中一个启动,只有在另一个已经启动并运行了一段时间之后。我怎样才能做到这一点?谢谢

<flow name="newHttpClientRequestProcessor" doc:name="newHttpClientRequestProcessor">

 <flow name="RestNewHttpClientRequestFlow" doc:name="RestNewHttpClientRequestFlow">
    <http:inbound-endpoint exchange-pattern="one-way" host="localhost" port="8082" path="subscription" doc:name="HTTP"/>
    <jersey:resources doc:name="REST">
        <component class="com.citi.isg.rest.endpoints.RestNewHttpClientEndpoint"/>
    </jersey:resources>
</flow>

【问题讨论】:

    标签: mule flow mule-studio


    【解决方案1】:

    这与我最近回答的这个问题类似:https://stackoverflow.com/a/14633484/387927

    • 配置最初不得以initialState="stopped" 启动的流
    • 无论何时要启动它,请使用以下 MEL 表达式:app.registry.FLOWNAME.start();,将 FLOWNAME 替换为您要启动的流的名称。

    【讨论】:

      猜你喜欢
      • 2020-12-13
      • 2015-07-19
      • 2019-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-17
      • 1970-01-01
      • 2016-11-01
      相关资源
      最近更新 更多