Well done! In three days (Days 5, 6, and 7), you've covered pretty much everything you need to know about writing EJBs. There's a little mopping up of relatively minor issues tomorrow, but you now have the essentials under your belt.

Today, you saw how the n-tier architecture is subtly revised again, with the responsibility for persistence delegated downward to the EJB container-generated subclasses of the CMP Entity bean. You also learned that the lifecycle for CMP Entity beans is substantially the same as BMP Entity beans and, in general, there is less coding to be done.

You now know that CMP fields are defined in the deployment descriptor and correspond to primitive and to Serializable objects. They are represented in the CMP bean ...

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.