• 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 Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

cmp versus bmp with dao

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All
I have read the posting by herve attia
i just read the explanation given by Herve Attia for using the cmp and bmp with dao at top of this posting.
It is mentioned that it is not good to have all the tables to be represented as CMP. And for example of customer ,address,credit card it is said that customer can be made as entity bean with address and credit card as bmp with dao.
My doubts
1 We have CMR in ejb2.0 so should we use relations instead of using bmp with dao for adress and creditcard. If we do so we are anyway representing each table with a cmp.
2 When we design CMP beans do we have the flexibility to have different columns from different tables to be represented as one CMP in ejb1.1 or ejb2 . If this facility is there is it useful to implement.
3 The scea part 2 is based on ejb1.1 or ejb2
4 I have read that CMP is better than scalable than BMP why is it so is it just because container manages persistent for CMP.
5 Have anyone found difficulties with cmp in real projects and felt that bmp is better. I feel that CMP may be difficult to maintain if we do use CMR also then it will be more difficult to maintain. With BMP we do have full control and is better though we have to take care of persistent.

regards
Javid
 
mohd
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The posting of Herve Attia refered above is at link
https://coderanch.com/t/149754/java-Architect-SCEA/certification/DAO-SCJEA-Assignment
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic