• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

A confused mock question

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the answer? Is the answer based on legacy EJB implementation?
As far as I understand of EJB 2.0, BMP has no definite advantage over CMP as far as performance is concerned.
When should you use CMP?
(A) When performance is essential and you are storing standard data types.
(B) When performance is not essential and you are storing standard data types.
(C) When performance is essential and you are storing complex data types.
(D) When performance is not essential and you are storing complex data types.
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Dennis,
But this version of the SCEA is based upon EJB 1.1 not EJB 2.0. Therefore the question should be answered with this in mind.
For example, in Cades SCEA guidebook on page 24: "CMP does not generate the most efficient SQL queries", and at the end of the chapter: "... The downside to CMP is that the tools are not mature enough to provide the performance necessary for an enterprise application." This however is no longer the case as modern EJB Containers can apply many optimization techniques and out perform BMP.
Regards
Ian
 
Denis Wang
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks.
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AFAIK, the J2EE community has learned that the performance of CMP is often equal or better than BMP.
 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer to this question is:
(B) When performance is not essential and you are storing standard data types.
 
reply
    Bookmark Topic Watch Topic
  • New Topic