Apache Camel Exchange 从一个进程传播到另一个进程
Apache Camel Exchange to Propagate from one process to another
我正在寻找一种方法,在 Apache Camel 中,我可以停止交换以从一个进程传播到另一个进程,而无需停止并重新启动路由本身。我配置了以下路由,我基本上要注意的是 return 根据某些条件从 messageMultiplierProcessor 进行交换,而没有 changing/modifying 交换 body 或 setting/resetting 它 headers.
<route id="business-logic-route">
<from uri="direct:business-logic-endpoint"/>
<setProperty propertyName="esq.route.name">
<constant>TestRoute</constant>
</setProperty>
<process ref="messageMultiplierProcessor" />
<process ref="calculatedFieldsProcessor" />
您可以使用 "when" & "stop" 在任何时候有条件地停止路线:
<when>some condition</when>
<stop/>
我正在寻找一种方法,在 Apache Camel 中,我可以停止交换以从一个进程传播到另一个进程,而无需停止并重新启动路由本身。我配置了以下路由,我基本上要注意的是 return 根据某些条件从 messageMultiplierProcessor 进行交换,而没有 changing/modifying 交换 body 或 setting/resetting 它 headers.
<route id="business-logic-route">
<from uri="direct:business-logic-endpoint"/>
<setProperty propertyName="esq.route.name">
<constant>TestRoute</constant>
</setProperty>
<process ref="messageMultiplierProcessor" />
<process ref="calculatedFieldsProcessor" />
您可以使用 "when" & "stop" 在任何时候有条件地停止路线:
<when>some condition</when>
<stop/>