16.11.2Application Assembler’s Responsibilities
The Application Assembler can use the persistence-unit-name element in the deployment descriptor to specify a reference to a persistence unit using the syntax described in section 16.10.2. In this manner, multiple persistence units with the same persistence unit name may be uniquely identified when persistence unit names cannot be changed.
Persistence context for the inventory management
The Application Assembler uses the persistence-unit-name element to link the persistence unit name InventoryManagement declared in the InventoryManagerBean to the persistence unit named InventoryManagement defined in inventory.jar.
Where is (and/or how does) the persistence unit name InventoryManagement declared in the InventoryManagerBean (look)?
InventoryManagement would appear declared as in the above first? Secondly, application assemblers can then use the deployment descriptor persistence-unit-name element (quoted in my initial question) to refer or link to the persistence unit specified in the persistence.xml located in META-INF directory of the inventory.jar file?
Both, in this case the bean-based and the persistence.xml-based, declarations along with the deployment descriptor persistence-unit-name element, which ties these together, are required for the link? Correct?