HF EJB page 395: Since there could be many relationships in the <relationships> section, how does the container figure out which two <ejb-relationship-role> thingys are the partners in a relationship? In the example on page 395, I see nothing in one relationship that links it to the other, and vica versa.
Sorry, I have not had the pleasure of reading the Head First Book yet. However, I do believe I can answer your question. The relationships element has ejb-relation as subelements. Each ejb-relation has exactly two ejb-relationship-role subelements which describes each of the two parties involved in the CMR.
Hope you can use this answer. Remember, when in doubt, look in the specification - in this you will also find the complete DD-DTD in which you will find exact answers to your problems.
Nicky Moelholm
MyCerts: SCJP 1.2, SCJP 1.5, SCJD, SCWCD 1.3, SCBCD 1.3, SCDJWS 1.4, SCEA, IBM 253
MyBooks: IBM WebSphere Application Server V7.0 Web Services Guide