简体   繁体   English

Glassfish作为OSGi容器

[英]Glassfish as an OSGi Container

I'm evaluating OSGi containers and the subject came up of using Glassfish to contain my OSGi application components. 我正在评估OSGi容器,并且主题是使用Glassfish来包含我的OSGi应用程序组件。 My question is: Is Glassfish good for this? 我的问题是:Glassfish对此有好处吗? Does anybody have any experience using it in this way? 有没有人有这种方式使用它的经验?

Background: - The application is not a Java EE application, it's a Spring application. 背景: - 应用程序不是Java EE应用程序,它是Spring应用程序。 - I've been evaluating Felix + Tomcat. - 我一直在评估Felix + Tomcat。 - I've never used Glassfish but it has some features that our operations people are interested in. - 我从未使用过Glassfish,但它有一些我们的操作人员感兴趣的功能。

Thanks! 谢谢!

GlassFish is IMO a serious candidate and I would definitely look at it. GlassFish是IMO的一个重要候选人,我肯定会看到它。 Some resources: 一些资源:

While Glassfish may be a good candidate for an OSGi container, it is fairly large, due to the fact that it is primarily a Java EE container. 虽然Glassfish可能是OSGi容器的一个很好的候选者,但它相当大,因为它主要是一个Java EE容器。 If I were writing an OSGi application, I would use Karaf/Felix as the container. 如果我正在编写OSGi应用程序,我会使用Karaf / Felix作为容器。 Its small, OSGi specific, OSGi 4.2 compliant, in active development (bugs get fixed quickly), and has a large group of OSGi users. 它的小型,OSGi特定,OSGi 4.2兼容,在主动开发中(错误得到快速修复),并拥有大量OSGi用户。

The demo Jesper mentions uses OSGi declarative services. 演示Jesper提到使用OSGi声明性服务。 See this detailed blog entry GlassFish can also be installed on an existing OSGi runtime (Felix or Equinox). 查看详细的博客文章 GlassFish也可以安装在现有的OSGi运行时 (Felix或Equinox)上。 Current OSGi efforts are focusing on hybrid apps and the OSGI enterprise spec. 目前的OSGi工作重点是混合应用程序和OSGI企业规范。 It let's JPA, JDBC, HTTP and other services to be packaged as OSGi bundles. 它允许将JPA,JDBC,HTTP和其他服务打包为OSGi包。

The fastest OSGi container is probably NetBeans' http://wiki.apidesign.org/wiki/JDeveloper 最快的OSGi容器可能是NetBeans的http://wiki.apidesign.org/wiki/JDeveloper

For more info see http://platform.netbeans.org/tutorials/nbm-osgi-quickstart.html 有关详细信息,请参阅http://platform.netbeans.org/tutorials/nbm-osgi-quickstart.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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