EE.2.4 Containers

第 EE.2.4 章 容器

Containers provide the runtime support for Java EE application components. Containers provide a federated view of the underlying Java EE APIs to the application components. Java EE application components never interact directly with other Java EE application components. They use the protocols and methods of the container for interacting with each other and with platform services. Interposing a container between the application components and the Java EE services allows the container to transparently inject the services required by the component, such as declarative transaction management, security checks, resource pooling, and state management.

容器为Java EE应用程序组件提供了运行时。容器为应用程序组件提供了一组基于Java EE API的联合视图。Java EE应用程序组件从不直接影响其他Java EE应用程序组件。它们通过容器的协议和方法进行交互或与平台服务进行交互。在应用程序组件和Java EE服务之间加入容器,可以让容器透明的注入组件所需要的服务,例如声明性事务管理、安全检查、资源池、以及状态管理。

A typical Java EE product will provide a container for each application component type: application client container, applet container, web component container, and enterprise bean container.

一个典型的Java EE产品将会为每种类型的组件提供容器:应用程序客户端容器、应用小程序容器、Web组件容器以及企业级Bean容器。

EE.2.4.1 Container Requirements

第 EE.2.4.1 章 对容器的要求

This specification requires that containers provide a Java Compatible? runtime environment, as defined by the Java Platform, Standard Edition, v6 specification (Java SE). The applet container may use the Java Plugin product to provide this environment, or it may provide it natively. The use of applet containers providing JDK? 1.1 APIs is outside the scope of this specification.

本规范要求容器必须提供一个Java兼容的运行时环境,如在Java 平台标准版 第六版 (JavaSE)中所描述的。应用小程序容器可以通过使用Java插件提供此环境,或者被原生的支持。基于JDK1.1版API的应用小程序容器不在本规范要求的范围内。

The container tools must understand the file formats for the packaging of application components for deployment.

容器的工具必须熟知打包应用程序组件的文件的格式。

The containers are implemented by a Java EE Product Provider. See the description of the Product Provider role in Section EE.2.11.1, “Java EE Product Provider“.

容器由Java EE产品供应商提供。请参考第 EE.2.11.1 章,“Java EE产品供应商”中的相关角色规则。

This specification defines a set of standard services that each Java EE product must support. These standard services are described below. The Java EE containers provide the APIs that application components use to access these services. This specification also describes standard ways to extend Java EE services with connectors to other non-Java EE application systems, such as mainframe systems and ERP systems.

本规范定义了一组任何Java EE产品必须提供的标准服务。这些标准服务会在下面进行描述。Java EE容器提供用于应用程序访问这些服务的API。本规范也描述了标准的通过连接其他非Java EE应用系统(例如大型机系统和ERP系统)的扩展Java EE服务的方式。

EE.2.4.2 Java EE Servers

第 EE.2.4.2 章 Java EE 服务器

Underlying a Java EE container is the server of which it is a part. A Java EE Product Provider typically implements the Java EE server-side functionality using an existing transaction processing infrastructure in combination with Java Platform, Standard Edition (Java SE) technology. The Java EE client functionality is typically built on Java SE technology.

基于Java EE的容器是服务器的一部分。Java EE 产品供应商一般通过基于Java平台标准版(Java SE)技术的现有事务处理框架实现Java EE服务端的方法。Java EE客户端方法一般使用Java SE技术进行构建。