aspose file tools*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CMP over BMP ?