OSGi中国官方站:http://www.riawork.org/
下载《OSGi实战》 http://www.riawork.org/download.html (可新建迅雷任务http://www.riawork.org/docs/osgi.opendoc.rar)
在Eclipse3.7.0环境中使用Equinox运行第一个例子所需要的一些改动:
将code.jar中classic目录下的项目导入Eclipse工作空间。
修改UserValidatorWebBundle项目的MENIFEST.MF文件,将Required Plug-ins改为javax.servlet。
新建运行工程时,在Target Platform中选中javax.servlet, org.eclipse.equinox.http.jetty, org.eclipse.equinox.http.servlet, org.eclipse.osgi, org.eclipse.osgi.service, org.mortbay.jetty.server, org.mortbay.jetty.util这7个bundles。
OK,可以正常运行了。
在Eclipse3.7.0环境中使用Equinox运行第二个例子所需要的一些改动:
将code.jar中ds目录下的项目导入一个新的Eclipse工作空间。
修改UserValidatorWebBundle项目的MENIFEST.MF文件,将Required Plug-ins改为javax.servlet。
新建运行工程时,在Target Platform中选中上例的7个bundles外,再选中org.eclipse.equinox.ds和org.eclipse.equinox.util。
OK,可以正常运行了。