Q&A
Q1: | When should I use CMP, and when should I use BMP? |
A1: | As you have learned over the past 2 days, CMP saves a lot of development time when you have to develop simple applications. For complex data access, CMP still has a few limitations. In addition, though the EJB QL has been introduced in EJB 2.0, it does not provide the full-fledged querying capabilities that you would expect from a query language. Hence, CMP is recommended for applications that do not have complex database table relations.
BMP, on the other hand, has a longer development curve, since the persistence code has to be hand-coded by the bean provider. The advantage of BMP is that it enables developers to have the necessary flexibility to write complex SQL queries for accessing ... |
Get Sams Teach Yourself BEA WebLogic Server 7.0™ 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.