Java™ Platform, Enterprise Edition (Java EE) Specification, v6(8)

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技術進行構建。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章