开始使用 osgi + 菲利克斯
我需要开始使用 Felix 的哪些软件包? 下载页面上有无数的此类内容。
(ps 这个名字是对“奇怪的情侣”的引用+与 OSGI 的“奥斯卡”参考框架相反?这是我在阅读其中一个教程页面后想到的,并且我从中笑出了声。)
Which packages of Felix do I need to get started? There are a zillion of them on the downloads page.
(p.s. is the name a reference to the Odd Couple + in contrast to OSGI's "Oscar" reference framework? this occurred to me after reading one of the tutorial pages & I got a chuckle out of it.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您只需在以下位置下载“主要”发行版:
http://apache.mirror.clusters.cc/felix/felix -1.8.0.tar.gz
(这是第一个下载链接)
解压,进入felix-1.8.0目录,输入
$ java -jar bin/felix.jar
将出现 Felix 控制台,输入“help”即可开始
You just need to download the "main" distribution at:
http://apache.mirror.clusters.cc/felix/felix-1.8.0.tar.gz
(it is the first download link)
Unzip it, enter in the felix-1.8.0 directory and type
$ java -jar bin/felix.jar
The Felix console will appear, type "help" to get started
我的答案实际上并不是关于“如何”,而是关于“在哪里”查看。
我强烈推荐 Walid Joseph Gédéon 编写的 OSGi 和 Apache Felix 3.0 初学者指南。 我之前使用的是 Equinox,但在这本书改用 Felix 后,它写得非常好。
关于 felix 捆绑包,我最常运行 Gogo Comman+Runtime+Shell、iPOJO、Log 和 Http(jetty/whiteboard)。
PS:只是添加另一本书,我认为这将成为经典 - OSGI in Action。 您可以从 manning 购买早期访问权。 与官方 OSGI 规范相结合,这将为您奠定坚实的基础。
My answer is not really about "how to", but about "where" to look.
I highly recommend OSGi and Apache Felix 3.0 Beginner's Guide by Walid Joseph Gédéon. I was using Equinox but after this book switched to Felix, it is just so well written.
Regarding felix bundles I am most commonly running Gogo Comman+Runtime+Shell, iPOJO, Log and Http (jetty/whiteboard).
P.S.: Just to add another book, that I think will become a classic - OSGI in Action. You can buy early access from manning. In combination with the Official OSGI Specs this will lay a solid foundation.
实际上,这取决于您要实现的目标。 您可以从主要的 Felix 发行版开始,它已经包含 OSGi Bundle Repository 实施,这样您就可以下载并启动其他 Felix 捆绑包。
相反,您可以使用 Pax Runner 下载并运行 Felix(或其他 OSGi 实现),您可以控制哪些集合OSGi 包可以轻松运行。
还有一种用 ServiceMix Kernel (称为 Karaf)启动 Felix 的方法,它是基于 Felix 的,但是包含更多的bundle并且支持热部署
Actually this depends on what you are going to achieve. You can start with main Felix distribution, it already contains OSGi Bundle Repository implementation, so you will be able to download and start other Felix bundles.
Contrary, you can download and run Felix (or other OSGi implementations) using Pax Runner, you can control which sets of OSGi bundles to run easily.
There is also a way to start Felix with ServiceMix Kernel (called Karaf), it is based on Felix, but contains more bundles and supports hot deployment
Felix main(系统包 - 级别 0)将始终存在并且不会丢失。 积极的。
对于其余的,它可以是完全随机的,但为了方便起见,有一些纲要包。 OSGi 联盟将纲要包定义为 R4 规范的一部分。
我也是 OSGi 的新手。 我发现此页面对于使用 Felix 的不同方式非常有帮助。
它表明您不需要使用任何“纲要”或其他捆绑包。
我个人喜欢“声明性服务”纲要捆绑包
(在 org.apache.felix.scr-1.0.8.jar 中称为 SCR)
它使真正的服务架构成为可能。
还有 iPOJO、spring-DM 等,但它对我来说是 DS。
您可以在 OSGI R4 规范中阅读有关概要包的信息。
Felix main (the System bundle - level 0) will always be there & active.
For the rest it can be completely random, but there's the compendium bundles which are there for convenience purposes. The compendium bundles were defined by the OSGi alliance as part of the R4 spec.
I'm also new on OSGi. I found this page quite helpful on different ways of using Felix.
it shows that you don't need to use any 'compendium' or other bundles.
Personally i like 'Declarative Services' compendium bundle
(called SCR like in org.apache.felix.scr-1.0.8.jar)
it makes true service architecture possible.
There's also iPOJO, spring-DM etc. but its DS for me
You can read about compendium bundles in the OSGI R4 spec.