This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

differnce bw cmp and bmp

 
Chan Apex
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Difference bw CMP and BMP?

Thanks in advance.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here you go
 
Chan Apex
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know which approach is the better one??
 
Ravi C Kota
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chandrasekhar balla wrote:I want to know which approach is the better one??


For any reason, you want to take the control from the container, you will use BMP, otherwise CMP is mostly sufficient. By implementing BMP, you are responsible for persistance, synch up with database and other tasks which should be delegated to container and you as a developer concentrate on business logic implementation. But again, if you don't like container doing this for you, BMP is what needed.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither is better - they're different, as the articles I linked to point out. Also, both are obsolete - entity beans are dead, and JPA has taken its place.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic