This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Lester Burnham
Rancher
Joined: Oct 14, 2008
Posts: 1337
posted
0
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.