Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Enterprise JavaBeans™ Specification, Version 2.0 - Sun Microsystems.pdf
Скачиваний:
14
Добавлен:
24.05.2014
Размер:
2.71 Mб
Скачать

Sun Microsystems Inc

Deprecated in EJB 1.1

Enterprise JavaBeans 2.0, Public Draft

Ejb-jar file

The EJB specification does not specify whether the ejb-jar file should include by copy or by reference the classes that are in the ejb-client JAR. If the by-copy approach is used, the producer simply includes all the class files in the ejb-client JAR file also in the ejb-jar file. If the by-reference approach is used, the ejb-jar file producer does not duplicate the content of the ejb-client JAR file in the ejb-jar file, but instead uses a Manifest Class-Path entry in the ejb-jar file to specify that the ejb-jar file depends on the ejb-client JAR at runtime.

The use of the Class-Path entries in the JAR files is explained in the Java 2 Platform, Enterprise Edition specification [9].

22.5 Deprecated in EJB 1.1

This section describes the deployment information that was defined in EJB 1.0, and was deprecated in EJB 1.1.

22.5.1 ejb-jar Manifest

The JAR Manifest file is no longer used by the EJB architecture to identify the enterprise beans contained in an ejb-jar file.

EJB 1.0 used the Manifest file to identify the individual enterprise beans that were included in the ejb-jar file. As of EJB 1.1, the enterprise beans are identified in the deployment descriptor, so the information in the Manifest is no longer needed.

22.5.2 Serialized deployment descriptor JavaBeans™ components

The mechanism of using serialized JavaBeans components as deployment descriptors has been replaced by the XML-based deployment descriptor.

459

5/31/00

Sun Microsystems Inc.

Ejb-jar file

Enterprise JavaBeans 2.0, Public Draft

Deprecated in EJB 1.1

5/31/00

460