B.1. Vendor-independent and vendor-specific deployment descriptors

The EJB Specification stipulates that each EJB-JAR file must contain at least one deployment descriptor, that it must be called ejb-jar.xml, that it must have a specified structure, and that it must be packaged into a directory called META-INF. However, the Specification does not limit the number of deployment descriptors to this one. In fact, server vendors are permitted to require the JAR files they deploy to contain any number of additional deployment descriptors, and there are no requirements as to structure, name, or even content of these files.

There are two reasons for this state of affairs, which seems at first to be in opposition to the major portability goal of J2EE. ...

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.