【发布时间】:2017-05-25 10:33:56
【问题描述】:
我正在使用 JBoss Fuse,我很困惑我应该有多条路线还是一条路线。假设我们有 2 个条件,我们将根据条件执行不同的操作。例如
<camelContext>
<route>
<choice>
<onWhen>
<simple>${property.name} == 'foo'</simple>
....do something
</onWhen>
<onWhen>
<simple>${property.name} == 'bar'</simple>
...do something
</onWhen>
</route>
</camelContext>
【问题讨论】:
标签: routes apache-camel jbossfuse