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

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

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

    OSGi成為JSR291以及OSGi對(duì)Spring產(chǎn)生的影響

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

    OSGi對(duì)于Spring產(chǎn)生了重大的影響,這個(gè)從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將對(duì)Spring造成的沖擊,只是Rod Johnson認(rèn)為目前Spring 2.0的核心目標(biāo)是完成之前定的目標(biāo),而不是去改變象Spring AOP、JDBC所基于的底層框架,也就是Spring Core,但這也暗示了Rod Johnson對(duì)于OSGi的認(rèn)同。
    再來看另外一篇Equinox開發(fā)者maillist以前的一篇關(guān)于"Declarative Services Vs Spring"的Mail,Equinox的開發(fā)者可是毫不給面子的說出來DS完全會(huì)替代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."

    對(duì)于OSGi Vs Spring、DS Vs Spring這樣的話題我不是那么的感興趣,因?yàn)闇?zhǔn)備的來說,OSGi與Spring沒有什么太大的可比性,真的要比的話也只有"Declarative Services Vs Spring DI",而其他方面則是兩者各有優(yōu)勢,所以我認(rèn)為OSGi盡管確實(shí)對(duì)Spring DI會(huì)產(chǎn)生不小的影響,但Spring最為重要的一個(gè)優(yōu)勢"POJO Enhanced"并不是OSGi的方向,所以我覺得OSGi與Spring并沒有沖突,反而我非常期待Spring與OSGi的結(jié)合,Spring與OSGi的結(jié)合的一篇文章可見:
    http://opensource.atlassian.com/projects/spring/secure/attachment/11891/spring_and_osgi.html
    這篇文章寫的非常好,點(diǎn)出了Spring與OSGi結(jié)合給彼此帶來的好處:
    • 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
    一個(gè)最明顯的好處就是可以簡單的將現(xiàn)有模塊不做大的改動(dòng)(或者甚至不做改動(dòng))移植到OSGi環(huán)境中,不過以目前Rod的說法來看,估計(jì)還有的等,畢竟那可是Spring core呀,即使是做橋接估計(jì)工作量也很大,或者可以自己先動(dòng)手起來。

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

    評(píng)論

    # re: OSGi成為JSR291以及OSGi對(duì)Spring產(chǎn)生的影響 2006-08-29 15:34 kruce

    贊...  回復(fù)  更多評(píng)論   

    # re: OSGi成為JSR291以及OSGi對(duì)Spring產(chǎn)生的影響 2006-09-07 10:13 江南白衣

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

    不用等3.0啦,2.0就會(huì)有初步集成,年內(nèi)就會(huì)出2.1,2.2 進(jìn)行full 集成。  回復(fù)  更多評(píng)論   

    # re: OSGi成為JSR291以及OSGi對(duì)Spring產(chǎn)生的影響 2006-09-07 14:50 BlueDavy

    @江南白衣
    好消息....  回復(fù)  更多評(píng)論   

    公告

     









    feedsky
    抓蝦
    google reader
    鮮果

    導(dǎo)航

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

    統(tǒng)計(jì)

    隨筆分類

    隨筆檔案

    文章檔案

    Blogger's

    搜索

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 久草福利资源网站免费| 日韩成人在线免费视频 | 免费看美女被靠到爽| 亚洲国产成人VA在线观看| 亚洲爆乳少妇无码激情| 免费A级毛片在线播放不收费| 99久久免费国产特黄| 亚洲一级在线观看| 亚洲精品tv久久久久| 久久国产免费观看精品3| 久久亚洲伊人中字综合精品| aaa毛片视频免费观看| 国产亚洲精品免费视频播放| 精品无码无人网站免费视频| 国产亚洲综合一区二区三区| 亚洲αv在线精品糸列| 91精品手机国产免费| 午夜在线亚洲男人午在线| 亚洲国产精品一区二区久久| 久操视频在线免费观看| 亚洲精品天堂无码中文字幕| 亚洲成AV人片在线观看ww| 啦啦啦完整版免费视频在线观看| 色窝窝亚洲av网| 亚洲日韩人妻第一页| 免费无码精品黄AV电影| 免费萌白酱国产一区二区三区 | 中文字幕不卡亚洲| 日本人成在线视频免费播放| 亚洲成av人片在www鸭子| 久久久久亚洲精品日久生情 | 久久精品国产99精品国产亚洲性色| 国产人在线成免费视频| 9i9精品国产免费久久| 在线看亚洲十八禁网站| 亚洲youjizz| 亚洲专区先锋影音| 亚洲精品成人片在线观看精品字幕| 四虎www免费人成| 国产卡二卡三卡四卡免费网址| 亚洲av无码有乱码在线观看|