---
title: "OSGI-ECLIPSE MODULE 开发"
author: "guanshuiwang"
date: "2012-01-31T16:47:00Z"
tags: []
slug: "osgi-eclipse-module"
draft: false
lastmod: "2012-09-21T16:21:51Z"
id: 1683102
url: "https://guanshuiwang.iteye.com/blog/1683102"
---

OSGi offers the following advantages:

- You can install, uninstall, start, and stop different modules of your application dynamically without restarting the container.
- Your application can have more than one version of a particular module running at the same time.
- OSGi provides very good infrastructure for developing service-oriented applications, as well as embedded, mobile, and rich internet apps.

<!--THE END-->

1. 下载org.eclipse.osgi\_3.7.1.R37x\_v20110808-1106.jar
2. 开发module . file-&gt;new-&gt;project-&gt;plugin development-&gt;plug-in project
3. file-&gt;export -&gt; plug-in development -&gt; deployable plug-ins and framgments
4. 启动osgi . java -jar xxx.jar -console
5. 安装插件 install file:c:\\....jar
6. start bundle
7. stop bundle