O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Another long day, but you now have lots of good new material under your belt. You've learned that Entity beans represent persistent domain data with corresponding domain (not application) logic. You've seen that the constituent parts of Entity beans are pretty much the same as Session beans, though Entity beans also require a primary key class that must be custom-developed if the key is composite.

You've also learned that there are two different ways to implement Entity beans, either using bean-managed persistence, whereby the persistence code (JDBC, for example) resides within the bean code, or using container-managed persistence. You now know the lifecycle for BMP beans and how to implement such beans.

You saw that the EJB specification ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required