This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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
Joined: Oct 14, 2008
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.