B.3. enterprise-beans element

This is the only element that is mandatory, although in practice there is always an assembly-descriptor element as well. This element contains subelements describing each EJB in the package. For example:

    <ejb–jar> 
      <enterpise–beans> 
        <session> 
          (... information about session EJB 1 ...) 
 5      </session> 
        <entity> 
          (... information about entity EJB 1 ...) 
        </entity> 
        <entity> 
10        (... information about entity EJB 2 ...) 
        </entity> 
        <message–driven> 
          (... information about message–driven EJB 1 ...) 
        </message–driven> 
15    </enterpise–beans> 
    </ejb–jar> 

There can be any number of entity elements, any number of session elements, and any number of message-driven elements.

B.3.1. session element

This element describes a session EJB. There ...

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.