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

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

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

    OSGi成為JSR291以及OSGi對Spring產生的影響

    JSR 291:Dynamic Component Support for JSR291,這個消息雖然有點舊了,不過還是同樣非常的令人振奮,OSGi成功的進入了JAVA SE領域,在Java新版本中必然會越來越多的看到OSGi的影子,JSR 291的final版本將在9月1日發布,其實它的內容基本就是OSGi Core的內容。

    OSGi對于Spring產生了重大的影響,這個從Rod Johnson本人的一段話以及之前Equinox中的"Declarative Services Vs Spring"郵件中可以看出很多:
    Rod JohnsonRod Johnson is offline
    Senior Member
    Spring Team
    ?
    Join Date: Aug 2004
    Location: London, UK
    Posts: 1,109
    DefaultOSGi support in Spring

    Quote:
    Spring 3.0? Where/When
    We don't yet have a release date in mind, but there is already OSGi integration code in the Spring sandbox. As the Spring model already offers powerful extension points such as proxying FactoryBeans, this sits happily on top of the present Spring core, so we don't need to do a bunch of rework to productize it.
    從這段話中我們可以看出什么呢?說明 Rod Johnson也是明白OSGi將對Spring造成的沖擊,只是Rod Johnson認為目前Spring 2.0的核心目標是完成之前定的目標,而不是去改變象Spring AOP、JDBC所基于的底層框架,也就是Spring Core,但這也暗示了Rod Johnson對于OSGi的認同。
    再來看另外一篇Equinox開發者maillist以前的一篇關于"Declarative Services Vs Spring"的Mail,Equinox的開發者可是毫不給面子的說出來DS完全會替代Spring DI的話:
    摘自Neil Bartlett的一段精彩的話:
    "With OSGi you always have to be aware that the services you depend on might go away, and possibly come back again
    later. That's the essence of OSGi - it's dynamic.
    "
    "On the other hand Spring has much more to it than dependency injection. It also has a number of very powerful libraries, eg for developing DAOs using JDBC or O/R mappers, an AOP library, remoting libraries, etc"
    "I've just been to a seminar given by Rod Johnson where he mentioned that they are working on OSGi integration with Spring, ie making Spring more dynamic so that it will work properly within an OSGi runtime. That's very exciting for me because I think that OSGi combined with Spring's rich framework and AOP features would be an incredible platform for enterprise services. It would blow away anything previously possible with J2EE and EJB.
    Unfortunately Rod said that this functionality is probably something that will be in Spring 3.0, where Spring is currently in 2.0 M1.
    As an alternative from the OSGi side, DS could be made more powerful so it could replace Spring's DI capabilities, while still making use of the other two sides of the "Spring triangle". "
    "It goes on to reject OSGi R3 but is silent on OSGi R4. In fact all of the reasons given for rejecting R3 are not applicable to R4. So what is the need for JSR 277? It appears to be a case of "Not Invented Here" syndrome.We now have JSR 291 which aims to turn OSGi itself into a JCP-supported Java standard."

    對于OSGi Vs Spring、DS Vs Spring這樣的話題我不是那么的感興趣,因為準備的來說,OSGi與Spring沒有什么太大的可比性,真的要比的話也只有"Declarative Services Vs Spring DI",而其他方面則是兩者各有優勢,所以我認為OSGi盡管確實對Spring DI會產生不小的影響,但Spring最為重要的一個優勢"POJO Enhanced"并不是OSGi的方向,所以我覺得OSGi與Spring并沒有沖突,反而我非常期待Spring與OSGi的結合,Spring與OSGi的結合的一篇文章可見:
    http://opensource.atlassian.com/projects/spring/secure/attachment/11891/spring_and_osgi.html
    這篇文章寫的非常好,點出了Spring與OSGi結合給彼此帶來的好處:
    • Better separation of application logic into modules
    • The ability to dynamically deploy, update and undeploy modules in a running system
    • The ability to deploy multiple versions of a module concurrently
    • The ability to dynamically discover and use services provided by other modules in the system
    • The ability to seamlessly leverage Spring value-adds in, and between, modules.
    • The ability to seamlessly leverage OSGi value-adds without detailed OSGi knowledge or experience.

    ????? We believe that the combination of OSGi and Spring offers the most comprehensive model available for building enterprise applications
    一個最明顯的好處就是可以簡單的將現有模塊不做大的改動(或者甚至不做改動)移植到OSGi環境中,不過以目前Rod的說法來看,估計還有的等,畢竟那可是Spring core呀,即使是做橋接估計工作量也很大,或者可以自己先動手起來。

    posted on 2006-08-29 14:18 BlueDavy 閱讀(3704) 評論(3)  編輯  收藏 所屬分類: OSGi、SOA、SCA

    評論

    # re: OSGi成為JSR291以及OSGi對Spring產生的影響 2006-08-29 15:34 kruce

    贊...  回復  更多評論   

    # re: OSGi成為JSR291以及OSGi對Spring產生的影響 2006-09-07 10:13 江南白衣

    http://www.infoq.com/articles/spring-2-update

    不用等3.0啦,2.0就會有初步集成,年內就會出2.1,2.2 進行full 集成。  回復  更多評論   

    # re: OSGi成為JSR291以及OSGi對Spring產生的影響 2006-09-07 14:50 BlueDavy

    @江南白衣
    好消息....  回復  更多評論   

    公告

     









    feedsky
    抓蝦
    google reader
    鮮果

    導航

    <2006年8月>
    303112345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    統計

    隨筆分類

    隨筆檔案

    文章檔案

    Blogger's

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 在线免费视频你懂的| 亚洲va在线va天堂va不卡下载 | 美女被爆羞羞网站免费| 亚洲日韩乱码中文字幕| 2020天堂在线亚洲精品专区| 亚洲国产高清美女在线观看| 亚洲精品高清国产麻豆专区| 亚洲短视频在线观看| 亚洲大片免费观看| 亚洲人成影院77777| 亚洲老熟女五十路老熟女bbw| 亚洲熟女精品中文字幕| 亚洲Av永久无码精品黑人| 99亚洲乱人伦aⅴ精品| 羞羞漫画小舞被黄漫免费| 人碰人碰人成人免费视频| 9久热精品免费观看视频| 一级毛片**不卡免费播| 亚欧在线精品免费观看一区| 国产成人无码免费看视频软件| 欧洲黑大粗无码免费| 国产精品久免费的黄网站| 亚洲高清偷拍一区二区三区| 狠狠亚洲婷婷综合色香五月排名| 亚洲女初尝黑人巨高清| 亚洲精品美女在线观看播放| 亚洲综合国产成人丁香五月激情| 亚洲AV无码国产一区二区三区| 狠狠热精品免费观看| 花蝴蝶免费视频在线观看高清版| 99re这里有免费视频精品| 永久免费毛片在线播放| 免费一级国产生活片| 亚洲日韩精品射精日| 亚洲理论在线观看| 亚洲av永久无码| 日本道免费精品一区二区| 一色屋成人免费精品网站| 国产精品免费_区二区三区观看| 国产亚洲精品成人AA片新蒲金| 亚洲视频免费播放|