wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes CMP over BMP ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "CMP over BMP ?" Watch "CMP over BMP ?" New topic
Author

CMP over BMP ?

sim sim
Ranch Hand

Joined: Jun 05, 2002
Posts: 55
What are the advantages / disadvantages of CMP over BMP ?
Karl Laird
Ranch Hand

Joined: Jul 14, 2001
Posts: 67
Biggest advantage of CMP over BMP is that the continer handles the transactional control aspects and also issues relating to caching of information, retrieval of db / data store information and concurrency problems.
BMP is more flexible but requires the programmer to explicitly control all of the above, which limits portability and also increases maintenance requirements


The Eagle sneers at the Peacock<p>Systems Administrator<br />OrderWare Solutions Ltd<br /><a href="http://www.orderware.net" target="_blank" rel="nofollow">http://www.orderware.net</a>
sun_guoqiao
Greenhorn

Joined: Jul 17, 2001
Posts: 4
But with CMP, the performance seemed not so satisfactory. So I have to write my own finder method in the CMP class. :-)
Anybody else got better idea?
Guoqiao
Originally posted by Karl Laird:
Biggest advantage of CMP over BMP is that the continer handles the transactional control aspects and also issues relating to caching of information, retrieval of db / data store information and concurrency problems.
BMP is more flexible but requires the programmer to explicitly control all of the above, which limits portability and also increases maintenance requirements
 
Don't get me started about those stupid light bulbs.
 
subject: CMP over BMP ?
 
Similar Threads
Entity EJB and BLOB
EJB
BMP Vs. CMP
Writing test case without database operations
How do you DB?