首页 > 解决方案 > Jakarta EE 模块、组件和容器

问题描述

我正在阅读Jakarta EE 教程,并且到处都在找到组件、模块和容器这些词,但我还没有找到它们的任何正式定义。那么,我想知道什么是组件、模块和容器?

标签: jakarta-ee

解决方案


成分:

https://jakarta.ee/specifications/platform/8/platform-spec-8.html#application-components https://docs.oracle.com/cd/E19575-01/819-3669/bnabb/index.html

模块: https ://eclipse-ee4j.github.io/jakartaee-tutorial/packaging001.html

容器: https ://eclipse-ee4j.github.io/jakartaee-tutorial/overview005.html

简而言之:您的应用程序包含 1 个或多个模块(.jar/.war/.ear 档案)。每个模块由组件(客户端/Web 组件/业务组件)组成。组件在容器内运行(EJB -> EJB 容器/JSF、Servlet,... -> Web 容器/应用程序客户端和 Applet 容器 -> 客户端)。


推荐阅读