Configuring and Deploying a BMP Entity Bean

Yesterday, you learned how to deploy Session beans by creating ejb-jar files with their own deployment descriptor and including the ejb-jar into an enterprise application. Deploying Entity beans is done in precisely the same way, by creating ejb-jar files that contain the Entity bean classes, and with appropriate entries in the deployment descriptor. This same deployment descriptor is used for both Session and Entity beans. Session beans and Entity beans can be placed in the same ejb-jar if required.

Entity Element

Most of the deployment descriptor elements referred by the entity element are also used by the session element and were discussed yesterday. Using the deploytool GUI interface to define an ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition 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.