Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic