OSGi:Apache Felix和Apache Karaf有什么区别? [英] OSGi: What are the differences between Apache Felix and Apache Karaf?

查看:223
本文介绍了OSGi:Apache Felix和Apache Karaf有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apache Karaf

Apache Karaf is a sub project of Apache Felix. It is defined as "a lightweight OSGi container".

我不知道我什么时候应该使用重量级的东西,什么时候应该使用轻量级的东西.他们的网站对此解释不多.

I don't understand when should I use the heavyweight and when to use the lightweight. Their site doesn't explain this too much.

推荐答案

轻量级OSGi容器"标签与 Karaf 具有功能丰富的OSGi容器,不是,具有 Felix .

The 'lightweight OSGi container' label is contrasting Karaf with more feature rich OSGi containers, not with Felix.

引用Guillaume Nodet(Karaf的作者)从这里:

To quote Guillaume Nodet (Karaf's author) from here:

Felix只是OSGi核心运行时. Karaf通过添加其他功能(例如控制台,SSH远程处理机制,文件部署器等)来提供基于Felix的分发".

Felix is just the OSGi core runtime. Karaf provides a "distribution" based on Felix by adding other features such as a console, an SSH remoting mechanism, a file deployer and more.

在此Karaf架构图中,Felix(或其他OSGi实现-当前 Equinox 也是支持)是OSGi框,其他框是Karaf添加的功能:

In this diagram of the Karaf architecture, Felix (or other OSGi implementation - currently Equinox is also supported) is the OSGi box, the other boxes are the features added by Karaf:

因此,除非您有Karaf无法满足的特定需求(需要访问底层实现),否则通常使用此选项是有意义的,因为它提供了更多的即用型"功能.

Therefore, unless you have specific needs which are not met by Karaf (requiring access to the underlying implementation) it usually makes sense to use this since it provides more 'out of the box'.

这篇关于OSGi:Apache Felix和Apache Karaf有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆