Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Container Managed Persistence  RSS feed

 
Vinayagam Kulandaivel
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Techies,

Y professionals recommend CMP most of the times instead of BMP.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The preliminary advantage of BMP is the flexiability for transactions. However, containers can provide services that program cannot be done, like ganging multiple calls to DB using native code, lazy loading, etc.

Thus, it is better to use CMP.

Nick
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!