File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes differnce bw cmp and bmp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "differnce bw cmp and bmp" Watch "differnce bw cmp and bmp" New topic
Author

differnce bw cmp and bmp

Chan Apex
Greenhorn

Joined: Oct 26, 2010
Posts: 16
Difference bw CMP and BMP?

Thanks in advance.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Here you go
Chan Apex
Greenhorn

Joined: Oct 26, 2010
Posts: 16
I want to know which approach is the better one??
Ravi C Kota
Ranch Hand

Joined: Jan 29, 2008
Posts: 61
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.


Thanks & Regards, Ravi C.Kota
SCJP 5.0, OCDJWS 5.0
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: differnce bw cmp and bmp
 
Similar Threads
Writing test case without database operations
J2EE technology would allow the system to interact with the LDAP server?
BMP Vs CMP
Entity EJB and BLOB
How do you DB?