B.4. relationships element
The relationships element specifies any number of associations between EJBs. It is optional, but will always be presented when there are container-managed associations. It has the following basic structure:
<ejb–jar> <enterpise–beans> (... EJB configuration ...) 5 </enterpise–beans> <relationships> <ejb–relation> <... association 1...> 10 </ejb–relation> <ejb–relation> <... association 2...> </ejb–relation> <ejb–relation> 15 <... association 3...> </ejb–relation> (... etc ...) </relationships> 20 </ejb–jar>
that is, it consists of a number of ejb-relation elements.
The ejb-relation element specifies the source and destination of a relationship, and the mutliplicity of each end. Here is an example.
<ejb–jar> <relationships> ...
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.