I have read in this forum that in EJB 1.1, BMP offers better runtime performance than CMP as the CMP spec was very poor in EJB 1.1. I have a copy of the EJB book by Richard Monson Haefel covering EJB 1.1. The author says that even in EJB 1.1, CMP is more efficient at runtime than BMP. He advises using BMP only when the entity is represented by complex relational joins or if we are connecting to a legacy database with non-standard complex data and mapping tools are not available to map the container managed fields to database columns. I am confused now. If there is a question in SCEA Part 1 that requires us to decide which one has better performance - CMP or BMP, which one should be chosen?
Originally posted by B Sathish: ... Richard Monson Haefel says that even in EJB 1.1, CMP is more efficient at runtime than BMP. He advises using BMP only when the entity is represented by complex relational joins or if we are connecting to a legacy ...
I think nobody of us can know all the questions that could come in the exam.
But for this Sun exam I would go with Richard Monson Haefel because CMP has the chance of automatic caching.
Also in praxi I would go with that as long as no definite performance leaks or believable oppinions of collegs force me to re-analyse. And even then (because of the differences of vendors, versions, tunings, developers' experience etc.) I would not believe anybody saying this or that here in this forum, out there in projects or in books but would demand a proof of concepts. Do you feel this being too archaic?