簡體   English   中英

了解FUSE Server和駱駝

[英]Understanding about FUSE Server and camel

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使其異步。

假設我在這種情況下不需要保險絲盒

感謝您抽出寶貴的時間閱讀

就像其他任何容器一樣,FUSE是容器,例如tomcat,您將代碼部署到該容器中。

如果您有很多集成方案,則需要有一個專用服務器來容納和運行所有可部署的服務器。 至少那是我的建議。

但是,如果只有少數幾種這樣的情況,則可以使用camel的強大功能(作為框架),將其用作Java代碼的支持jar並作為獨立代碼運行。

這意味着您有責任應對與該集成代碼有關的可用性和可伸縮性的大量請求和問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM