OSGi和应用程序服务器

OSGi和应用程序服务器

本文介绍了OSGi和应用程序服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法理解两个平台之间的差异吗?两者似乎都提供了用于部署和管理应用程序的环境.首先,我认为应用服务器在幕后使用OSGi,但现在我不这么认为,但是我看到大型AS(jboss,glassfish,websphere等)都在使用OSGi.全局是什么?

I'm having trouble undrstanding the difference about both platforms?Both seem to offer an environment for deploying and managing applications.First I thought app servers use OSGi under the hood, I don't think so now but I see large AS (jboss, glassfish, websphere, etc) use OSGi.What's the big picture?

谢谢

推荐答案

(在某种程度上)术语应用程序"的重载.

There is (to some extend) an overload of the term "application".

OSGi是用于模块化 Java应用程序的运行时环境(和开发模型).在这种情况下,术语应用程序"可能是非常低的级别.例如,可以将应用程序服务器视为这样的应用程序".

OSGi is a runtime environment (and development model) for modular Java applications. The term "application" in this case can be really, really low level. For example, an application server can be considered such an "application".

应用程序服务器还是Java应用程序的运行时环境(和开发模型).但是,在这种情况下,术语应用程序"通常是指更高级别的应用程序类型(例如,Web应用程序).应用程序服务器通常包括一组丰富的高级功能和编程API,用于构建Web应用程序(Servlet),将数据持久保存到数据库(JPA)和集群功能.如今,大多数应用程序服务器由模块(例如,核心,Servlet引擎,EJB容器等)组成.有些应用程序服务器在幕后使用OSGi.其他人则拥有自己的模块化运行时环境,该环境还提供OSGi功能.

Application servers are also a runtime environment (and development model) for Java applications. However, the term "application" in this case typically refers to a higher level application type (eg., web applications). Application servers typically include a rich set of higher functionality and programming APIs for building web applications (Servlets), persisting data into databases (JPA) and clustering capabilities. Most application servers these days are composed of modules (eg., core, servlet engine, EJB container, etc.). Some application servers use OSGi under the covers. Others have their own modular runtime environment which also offers OSGi capabilities.

但是也可以仅使用OSGi运行时环境直接开发更高级别的应用程序(例如Web应用程序).但是,OSGi框架本身不包含任何其他功能.它必须自己组装.有一些发行版"包括一个框架和几个模块.

But it's also possible to develop higher level applications (such as web applications) directly using only OSGi runtime environment. However, an OSGi framework itself does not include any of the additional functionality. It has to be assembled yourself. There are some "distributions" that include a framework and several modules.

这篇关于OSGi和应用程序服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 08:38