【发布时间】:2015-03-26 17:03:49
【问题描述】:
FUSE 和 Camel 的新手。
从 (https://github.com/jboss-fuse/quickstarts) 下载了 CBR 项目,并能够将其作为独立的骆驼项目运行。 cbr.xml 如下。这会将 MSG 从 work/cbr/input 目录放到另一个目录中。可以将其作为 mvn camel:run 运行
<route id="cbr-route">
<from uri="file:work/cbr/input" />
<log message="Receiving order ${file:name}" />
<choice>
<when>
<xpath>/order:order/order:customer/order:country = 'UK'</xpath>
<log message="Sending order ${file:name} to the UK" />
<to uri="file:work/cbr/output/uk" />
</when>
<when>
<xpath>/order:order/order:customer/order:country = 'US'</xpath>
<log message="Sending order ${file:name} to the US" />
<to uri="file:work/cbr/output/us" />
</when>
<otherwise>
<log message="Sending order ${file:name} to another country" />
<to uri="file:work/cbr/output/others" />
</otherwise>
</choice>
<log message="Done processing ${file:name}" />
</route>
</camelContext>
但自述文件说启动 FUSE SEVER 如果我能够独立运行它,我试图理解为什么我需要 FUSE 容器
有一个项目要求来自客户端的 Web 服务调用通过 FUSE 使其异步。
假设在这种情况下我不需要保险丝容器
感谢您抽出宝贵时间阅读
【问题讨论】:
标签: apache jboss apache-camel jbossfuse jboss-esb