Summary

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 well and truly have the essentials under your belt.

Today you saw how the n-tier architecture is subtly revised again, with the responsibility for persistence delegated downwards (into subclasses) 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 in the lifecycle methods (ejbCreate(), ejbLoad(), ejbStore(), and ejbRemove()).

You now know that cmp-fields are defined in the deployment ...

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.