close

  在Eclipse 3.4以上,[Run Configurations]裡有個OSGi Framework的設定,現在終於了解怎麼用,不過會建議開個command mode去用會比較好,因為osgi>提示是在Console View顯示,而像comipler、版本控制等,很多功能會使用Console view。所以開個command mode執行Equinox會單純很多。

  在[Run Configurations]裡有個[OSGi Framework]按右鍵選新增,會等很久後才出現如下的畫面:

image

  在Bundles裡的Target Platform列了很多bundle,其實都可以不用選,只選一樣org.eclipse.osgi後按[Run]就可以Eclipse下啟動OSGi container了。若真的執意想在Eclipse上run,千萬不要直接按[Run],按[Apply]後在把右邊的游標移離剛設定好的command,不然每次一開[Run Configurations]都等很久。

  Eclipse、Spring、Struts2和JPA其實都已支援OSGi,但有多少人會關注呢?OSGi輕薄短小,連手機都可以嵌入,cloud computing for Java solution的unisersal middleware的選擇,應該也是OSGi。

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Jemmy 的頭像
    Jemmy

    Jemmy Walker

    Jemmy 發表在 痞客邦 留言(0) 人氣()