Configuring a CMP Entity Bean
As you now appreciate, a substantial part of the implementation effort for CMP Entity beans is simply completing the deployment descriptor correctly.
This will always involve completing the entity element of the deployment descriptor, either manually or using a GUI tool such as deploytool. If the CMP Entity has container-managed relationships, these too must be specified under the relationships element of the deployment descriptor.
The entity Element
To remind you, the structure of the deployment descriptor is as follows:
<!ELEMENT ejb-jar (description?, display-name?, small-icon?, large-icon?, enterprise-beans, relationships?, assembly-descriptor?, ejb-client-jar?)>
Here you can see the relationships element, ...
Get Sams Teach Yourself J2EE™ in 21 Days 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.