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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.