I wanted to know what the advantages and disadvantages of using a BMP over a CMP......
Can anyone help???
-
advantages and disadvantages of CMP and BMP (7 messages)
- Posted by: Chander Shankar
- Posted on: April 05 2002 00:17 EST
Threaded Messages (7)
- advantages and disadvantages of CMP and BMP by Daniel Lang on April 05 2002 02:21 EST
- advantages and disadvantages of CMP and BMP by Eric Ma on April 05 2002 11:58 EST
- advantages and disadvantages of CMP and BMP by Jose A. Puche on April 05 2002 02:43 EST
- advantages and disadvantages of CMP and BMP by Alex Pisarev on April 05 2002 03:50 EST
- advantages and disadvantages of CMP and BMP by Alex Pisarev on April 05 2002 03:51 EST
- advantages and disadvantages of CMP and BMP by Pranab Ghosh on April 05 2002 17:39 EST
- advantages and disadvantages of CMP and BMP by David Jones on April 05 2002 18:40 EST
-
advantages and disadvantages of CMP and BMP[ Go to top ]
- Posted by: Daniel Lang
- Posted on: April 05 2002 02:21 EST
- in response to Chander Shankar
BMP = more flexible
CMP = much less implementation effort
Read a book!
Daniel. -
advantages and disadvantages of CMP and BMP[ Go to top ]
- Posted by: Eric Ma
- Posted on: April 05 2002 11:58 EST
- in response to Daniel Lang
Guys, it's time to read Ed's book, 2nd Ed. -
advantages and disadvantages of CMP and BMP[ Go to top ]
- Posted by: Jose A. Puche
- Posted on: April 05 2002 02:43 EST
- in response to Chander Shankar
and usually retrieving data (findBy... methods) from CMP is more efficient using CMP (less DB Access) -
advantages and disadvantages of CMP and BMP[ Go to top ]
- Posted by: Alex Pisarev
- Posted on: April 05 2002 03:50 EST
- in response to Jose A. Puche
Less DB access means nothing. You'll still need to have optimized SQL statements (especially, for large queries) - the container will never create an optimal execution plan for your specific database.
Alex. -
advantages and disadvantages of CMP and BMP[ Go to top ]
- Posted by: Alex Pisarev
- Posted on: April 05 2002 03:51 EST
- in response to Chander Shankar
And another disadvantage of CMP - you'll have much more sex seeking bugs while using CMP.
Alex. -
advantages and disadvantages of CMP and BMP[ Go to top ]
- Posted by: Pranab Ghosh
- Posted on: April 05 2002 17:39 EST
- in response to Chander Shankar
I have struggled with the choice between CMP and BMP. I have almost always ended up using BMP unless it's very simple app. In some cases, I have started with CMP and then switched to BMP as the app got more complex and I felt the need to hand optimize the queries. I wonder if others had similar experiences. Another issue I have with CMP is that you get tied to specific vendor's CMP engine.
For database independence, I don't have any SQL query embedded in my code.I have them in properties file. Each query is referred by a name.
Pranab -
advantages and disadvantages of CMP and BMP[ Go to top ]
- Posted by: David Jones
- Posted on: April 05 2002 18:40 EST
- in response to Pranab Ghosh
In my first EJB project back in the days of Weblogic 4.5.1 we used CMP to store the basic objects and SSB with SQL to do complex data retrieval. That pattern still seems to work well.
One system I recently designed we used BMP to implement the Composite Entity Pattern. This worked very well and the pattern held good.
My current project is a bit of CMP2.0 with BMP/SQL thrown into the mix. CMP2.0 is a lot better but it is still lacking in so many areas.