• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Part II : CMP Vs Session Bean and DAO

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I read the following discussion about CMP Vs Session Bean and DAO.

https://coderanch.com/t/149754/java-Architect-SCEA/certification/DAO-SCJEA-Assignment

Does CMP really introduce manageability issues and has a tight coupling with the Database ?

I thought BMP had those issues. In BMP you basically have to write the SQL queries within the entity bean itself. The only benefit of using using BMP is you may get faster performance and it is easier to work with complex datatypes using BMP.

But with the EJB 2.0 specifications, you can create CMR between multiple tables. Almost every application server today support caching mechanism and connection pooling which makes the database operations from the application server to the Database is even faster.

In the Part II assignment, I have seen everyone using DAO and session bean. I think it is probably easier for the assignment purpose so that you don't have to show so many entity beans and the relationship between them.
But would you really recommend someone to use Session Bean and DAO for a real project ?

Another quick question is, if I use CMP entity beans, how do I show their relationship in the Sequence Diagram ?
 
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
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