• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Better performance in EJB 1.1 - CMP or BMP?

 
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello B Satish,

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?

Thomas
reply
    Bookmark Topic Watch Topic
  • New Topic