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

Q&A

Q1: What do Entity beans represent?
A1: Entity beans represent persistent data that can be accessed and shared by many clients over time.
Q2:What are the two types of Entity beans?
A2: The two types of Entity beans are BMP and CMP.
Q3:Why are local interfaces preferable to remote interfaces for Entity beans?
A3: Local interfaces perform better because there is no network traffic when calling a bean through its local interface, and there is also no need to clone serializable objects. They are also the basis for CMP.
Q4:How does a BMP Entity bean know what its primary key is?
A4: It can be passed as an argument of ejbCreate(), it could be generated by the RDBMS, it could be generated by some other bean, or it might be generated as a pseudo-random ...

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