O'Reilly logo

Applied Enterprise JavaBeans™ Technology by Kevin Boone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required