• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic