【问题标题】:Understanding about FUSE Server and camel了解FUSE Server和骆驼
【发布时间】: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


    【解决方案1】:

    FUSE 是一个容器,就像任何其他容器一样,比如 tomcat,您将代码部署到其中。

    如果您有很多集成场景,那么您需要有一个专用服务器来保存和运行所有可部署的。至少这是我的建议。

    但是,如果只有少数这样的场景,您可以使用骆驼的力量,作为框架,将其用作您的 java 代码的支持 jar 并作为独立代码运行。

    这意味着您需要负责处理与该集成代码的可用性或可扩展性有关的请求数和问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-24
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 2014-04-01
      • 2023-03-22
      • 1970-01-01
      相关资源
      最近更新 更多