wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes To the author: SCBCD Exam Study Kit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "To the author: SCBCD Exam Study Kit " Watch "To the author: SCBCD Exam Study Kit " New topic
Author

To the author: SCBCD Exam Study Kit

Mathew Sam
Ranch Hand

Joined: Dec 19, 2001
Posts: 124
Could you please describe some specific scenarios where BMP should be used?
For join queries can we use CMP 2.0 ? Does Containers supports mapping in this case?
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Could you please describe some specific scenarios where BMP should be used?

BMP is seldom use and according to HF EJB, there are rare cases that you can make use of BMP. Might be you must have specific transactions that are break into several level, and each level must commit certain data, and when exception occurs in 1 transaction do NOT require to rollback other transactions, while this happened for a particular transction, you then have to implement your own transaction management logic.


For join queries can we use CMP 2.0 ? Does Containers supports mapping in this case?

Yes, CMR - Container Managed Relationship is aimed to provide this support, to link up various tables using Entity Beans.

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Paul Sanghera
Ranch Hand

Joined: Jul 26, 2005
Posts: 38
Originally posted by Mathew Sam:
Could you please describe some specific scenarios where BMP should be used?
For join queries can we use CMP 2.0 ? Does Containers supports mapping in this case?


Mathew:
As Nick said, for sake of robustness and to reduce the development time, it's always a good idea to use CMP, and CMP works pretty well in EJB 2.0. However, BMP does offer you more flexibility. There may be situations where you may need to use BMP (that's why BMP option is there), for example consider the situation when the data storage you are using is not supported by CMP (e.g. you are dealing with the data that exists in an application rather than the database).
So, the bottom line is, use CMP whenever you can.
Cheers.
Paul
Book website
http://www.manning.com/sanghera


Paul Sanghera, Ph.D.<br />SCBCD, SCJP, Project+, Network+, Linux+, CNA.
Siripa Siangklom
Ranch Hand

Joined: Jan 26, 2004
Posts: 79
Hi,

Could you please describe some specific scenarios where BMP should be used?
For join queries can we use CMP 2.0 ? Does Containers supports mapping in this case?


CMP is not portable across app servers but supports DB portability. BMP supports Application Server portability.

Siripa
 
Consider Paul's rocket mass heater.
 
subject: To the author: SCBCD Exam Study Kit
 
Similar Threads
Splitig integers
Do you like twitter ?
Posting to bump up my count...
Constructing overloading
Loading an image