Deployment Descriptor (DD): Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
* Application assembly information. Application assembly information describes how the enterprise bean (or beans) in the ejb-jar file is composed into a larger application deployment unit. Providing assembly information in the deployment descriptor is optional for the ejb-jar file producer. Assembly level information can be changed without breaking the enterprise bean’s function, although doing so may alter the behavior of an assembled application. |
* Application assembly information. Application assembly information describes how the enterprise bean (or beans) in the ejb-jar file is composed into a larger application deployment unit. Providing assembly information in the deployment descriptor is optional for the ejb-jar file producer. Assembly level information can be changed without breaking the enterprise bean’s function, although doing so may alter the behavior of an assembled application. |
||
---- |
|||
*[[Bean Provider's Responsibilities]] |
|||
*[[Application Assembler's Responsibility]] |
|||
*[[Container Provider's Responsibilities]] |
Revision as of 12:13, 1 December 2004
Overview
The deployment descriptor is part of the contract between the ejb-jar file producer and consumer. This contract covers both the passing of enterprise beans from the Bean Provider to the Application Assembler, and from the Application Assembler to the Deployer. An ejb-jar file produced by the Bean Provider contains one or more enterprise beans and typically does not contain application assembly instructions. An ejb-jar file produced by an Application Assembler contains one or more enterprise beans, plus application assembly information describing how the enterprise beans are combined into a single application deployment unit. The J2EE specification defines how enterprise beans and other application components contained in multiple ejb-jar files can be assembled into an application.
The role of the deployment descriptor is to capture the declarative information (i.e. information that is not included directly in the enterprise beans’ code) that is intended for the consumer of the ejb-jar file.
There are two basic kinds of information in the deployment descriptor:
- Enterprise beans’ structural information. Structural information describes the structure of an enterprise bean and declares an enterprise bean’s external dependencies. Providing structural information in the deployment descriptor is mandatory for the ejb-jar file producer. The structural information cannot, in general, be changed because doing so could break the enterprise bean’s function.
- Application assembly information. Application assembly information describes how the enterprise bean (or beans) in the ejb-jar file is composed into a larger application deployment unit. Providing assembly information in the deployment descriptor is optional for the ejb-jar file producer. Assembly level information can be changed without breaking the enterprise bean’s function, although doing so may alter the behavior of an assembled application.