The Artima Developer Community
Sponsored Link

Java Answers Forum
EJB

2 replies on 1 page. Most recent reply: May 8, 2002 3:16 AM by Kesavan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Rahul

Posts: 1
Nickname: rahul007
Registered: May, 2002

EJB Posted: May 8, 2002 12:33 AM
Reply to this message Reply
Advertisement
What is the difference between CMP and BMP beans? When should I use one or the other?(Go Crazy guys, i would like to see great answers on this)


Rohit

Posts: 38
Nickname: rohit
Registered: May, 2002

Re: EJB Posted: May 8, 2002 3:15 AM
Reply to this message Reply
CMP - the container will manage all the persistence,u dont have to worry about any JDBC or anything like this.

BMP - Container will not be any more incharge of the persistence,You have to be handle it all,all JDBC like stuff , you have to know.

Well CMP is easy to use,BMP gives you more control.Although it is said CMP is not suitable for complex data structures etc,but in last 3 yrs , I still have to find a real one,where it cant be used,to some extent.
Writing BMP, i think ,more than control,gives programmer a ego satisfaction that I m the boss here, i m handling everything etc.

Kesavan

Posts: 1
Nickname: macbeth
Registered: May, 2002

Re: EJB Posted: May 8, 2002 3:16 AM
Reply to this message Reply
The main difference between CMP & BMP is that the user need not code for the JDBC actions in CMP coz, as the name suggests Container Managed Persistence (CMP) EJB Container takes care of that.

Flat View: This topic has 2 replies on 1 page
Topic: download BIG attachfile from servlet, HOW? Previous Topic   Next Topic Topic: (newbie) delete record from array..

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use