我有两个骡子流。我想让其中一个开始,只有在另一个已经启动并运行了一段时间之后。我怎样才能做到这一点?感谢
<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>
答案 0 :(得分:1)
这与我最近回答的问题类似:https://stackoverflow.com/a/14633484/387927
initialState="stopped"
app.registry.FLOWNAME.start();
,将FLOWNAME
替换为您要启动的流的名称。