<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Oracle神諭

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      284 隨筆 :: 9 文章 :: 106 評論 :: 0 Trackbacks

    Considerations when choosing a technology (當選擇一個技術時候的考慮)
    Each and every technology presented here has its drawbacks. You should carefully consider you needs, the services your exposing and the objects you'll be sending over the wire when choosing a technology.
    每個技術這里介紹的都有它的缺點。你應該仔細考慮你的需要,當你選擇的時考慮你的暴露的服務和你將要發送關系的對象。


    When using RMI, it's not possible to access the objects through the HTTP protocol, unless you're tunneling the RMI traffic. RMI is a fairly heavy-weight protocol in that it support full-object serialization which is important when using a complex data model that needs serialization over the wire. However, RMI-JRMP is tied to Java clients: It is a Java-to-Java remoting solution.
    當我們使用RMI,我們不可以通過http協議訪問對象,除非你打通RMI交通的隧道。RMI 是一個非常重量級協議,在其中他支持的所有對象的序列化是非常重要的,當使用一個需要序列化關聯的復雜的數據模型。然而,RMI-JRMP 是依賴java客戶端的:它是java-to-java的遠程解決方案。


    Spring's HTTP invoker is a good choice if you need HTTP-based remoting but also rely on Java serialization. It shares the basic infrastructure with RMI invokers, just using HTTP as transport. Note that HTTP invokers are not only limited to Java-to-Java remoting but also to Spring on both the client and server side. (The latter also applies to Spring's RMI invoker for non-RMI interfaces.)
    Spring 的HTTP invoker 是一個不錯的選擇,如果你需要基于HTTP的遠程,而且需要java序列化回復。它使用RMI invoker分享了基礎結構,僅僅使用HTTP作為傳輸。注意HTTP invoker不是僅僅限制給java-to-java的遠程而且是在客戶端和服務器端的Spring.(后面的也應用到Spring 的RMI invoker為非RMI的接口)。

    Hessian and/or Burlap might provide significant value when operating in a heterogeneous environment, because they explicitly allow for non-Java clients. However, non-Java support is still limited. Known problems include the serialization of Hibernate objects in combination with lazily initializing collections. If you have such a data model, consider using RMI or HTTP invokers instead of Hessian.
    Hessian 和或 Burlap可以支持重要的值,當在一個異質的環境操作,因為他們明確的允許為非java 對象。然而非java對象是受限制的,知道的問題包括hibernate對象序列化與懶漢初始化集合的結合上。如果你有這樣的數據模型,考慮使用RMI或HTTP invokers而不是Hessioan.

    JMS can be useful for providing clusters of services and allowing the JMS broker to take care of load balancing, discovery and auto-failover. By default Java serialization is used when using JMS remoting but the JMS provider could use a different mechanism for the wire formatting, such as XStream to allow servers to be implemented in other technologies.


    Last but not least, EJB has an advantage over RMI in that it supports standard role-based authentication and authorization and remote transaction propagation. It is possible to get RMI invokers or HTTP invokers to support security context propagation as well, although this is not provided by core Spring: There are just appropriate hooks for plugging in third-party or custom solutions here.

     

    posted on 2005-06-24 10:15 java世界暢談 閱讀(669) 評論(0)  編輯  收藏 所屬分類: Spring
    主站蜘蛛池模板: 国内一级一级毛片a免费| 2019中文字幕免费电影在线播放| 日本不卡在线观看免费v| 亚洲中文字幕久久精品蜜桃| 无遮免费网站在线入口| 国产成+人+综合+亚洲专| 丁香花在线观看免费观看| 亚洲精品无码mⅴ在线观看| 免费观看的av毛片的网站| 亚洲丶国产丶欧美一区二区三区| 日韩免费高清视频网站| 日本中文字幕免费看| 自拍偷自拍亚洲精品情侣| 亚在线观看免费视频入口| 久久精品九九亚洲精品| 青青青国产在线观看免费| 亚洲丁香婷婷综合久久| 亚洲午夜无码AV毛片久久| 成人a视频片在线观看免费| 一本色道久久综合亚洲精品蜜桃冫 | 成人亚洲网站www在线观看| 男人扒开添女人下部免费视频| 精品亚洲一区二区三区在线播放| 久久一区二区免费播放| 国产精品成人免费一区二区| 亚洲国产成人无码AV在线影院| 国产一区二区三区免费看| 99在线免费观看| 亚洲国产理论片在线播放| AAA日本高清在线播放免费观看| 亚洲一本综合久久| 国产精品久久久久免费a∨| 美美女高清毛片视频黄的一免费 | 亚洲国产精品无码久久九九大片 | 久久国产乱子精品免费女| 亚洲国产成人精品无码区在线网站 | 特级毛片aaaa免费观看| 亚洲嫩草影院久久精品| 成人免费一区二区三区在线观看| 一级做a爱过程免费视频高清| 91精品国产亚洲爽啪在线影院|