简体   繁体   中英

How to create OSGI bundle?

我开发了一个标准的Java应用程序及其接口,在这里,我想将该应用程序放入OSGI捆绑软件中,我根本不熟悉OSGI,仅是它的概念,而在编程中什么都不是,我只是想学习如何将这个应用程序捆绑在一起,但是在搜索后,我总是可以获得完整的书籍或完整的参考资料,而我没有足够的时间来做。

You need to include a MANIFEST.MF file which will have the bundle information like version, bundle name, the packages that are to be imported/exported, etc. The MANIFEST.MF file has to be placed in the META-INF folder of your bundle.

This is a good tutorial to start you with OSGi.

This bndtools tutorial is probably the easiest way to get started with OSGi. If also this tutorial is too much work I actually would not even start. Though OSGi is surprisingly easy to use its concepts and requirements on your code are different then what you find in more classic Java environments.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM