---
title: "温故而知新，回顾一下osgi bundle"
author: "zyl"
date: "2009-02-08T20:34:45Z"
tags: []
slug: "osgi-bundle"
draft: false
lastmod: "2009-02-08T20:34:45Z"
id: 325293
url: "https://zyl.iteye.com/blog/325293"
---

本年的基本工作目标，基本确立了，重点还是osgi，先来回顾一下以前所做的。osgi看了看规范，目前还是4.1，这相差不大。equinox的版本，目前正式的算是3.4.1，以前用的为3.3，相差也不大。还是继续使用3.3吧，毕竟也懒得更新eclipse了，老是用新版本也不是个办法。看了一下jetty bundle,目前已经出来6.1.7了，相差还是有点，不过估计3.3也能支持6.1.7。servlet规范使用了2.5，其实2.4已经足够了，我又不需要jsp，不必使用新的el引擎。dm还是使用spring-dm，目前为1.2m，这个算是比较有大的发展，我现在用的还是1.0.2的，dm这一块估计变动也不会太大，其实，如果不是需要spring的一些其他功能，还不如直接用equinox的dm算了，为了赶个时髦，还是用spring算了，毕竟用惯了ServiceReference。  
   整理了一下，基本上的bundle还是那么几个：  
   osgi 核心：  
    org.eclipse.osgi\_3.3.2  
    org.eclipse.osgi.services\_3.1.2  
   equinox:  
    org.eclipse.equinox.common\_3.3.0  
    org.eclipse.equinox.registry\_3.3.1  
    org.eclipse.equinox.http.jetty\_1.0.1        (需要更新）  
    org.eclipse.equinox.http.registry\_1.0.1  
    org.eclipse.equinox.http.servlet\_1.0.1  
    org.eclipse.equinox.preferences\_3.2.1  
    org.eclipse.equinox.log\_1.0.1  
    org.eclipse.equinox.preferences\_3.2.1  
必须的bundle:  
    org.mortbay.jetty\_5.1.11                （需要更新）  
    javax.servlet\_2.4.0                    （可选更新）  
    org.apache.log4j\_1.2.9  
    org.apache.commons.logging\_1.0.4  
spring bundle:  
    org.springframework.spring\_2.5.2            （可选更新）     
    org.springframework.bundle.osgi.extender\_1.0.2    （可选更新）  
    org.springframework.bundle.osgi.core\_1.0.2    （可选更新）  
看了看一个基本的应用就需要这么多bundle，也够呛的，这还不算上hibernate,webwork,等其他第三方jar.