| Author |
BMP / CMP Entity Bean?
|
Sahana Hussain
Greenhorn
Joined: Jan 17, 2005
Posts: 9
|
|
Hi If I've to use BLOB/CLOB data in my application, which EntityBean (BMP or CMP) will be more efficient? Thanks Sahana
|
Sahana<br />SCJP<br />SCBCD
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
This is a bit of an unanswerable question: the BMP Entity bean will be more efficient if you implement the persistence code in a more efficient way than the container does. I think the bigger question if you are worried about efficiency is why are you using Entity Beans? [ November 30, 2006: Message edited by: Paul Sturrock ]
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Prabhu Venkatachalam
Ranch Hand
Joined: Nov 16, 2005
Posts: 502
|
|
As Paul said, In BMP you can do BLOB and CLOB operations as because as a Bean Developer you are responsible for writing SQL queries. In CMP also it is possible, but it is upto Application Server you use. I know, web logic supports. But I really don't know about others.
|
Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
|
 |
Sahana Hussain
Greenhorn
Joined: Jan 17, 2005
Posts: 9
|
|
Thanks Paul/ Prabhu for your reply. So, the BMP is a better solution as far as performance is concerned. I'm using EntityBean, as the existing application uses it. Otherwise, I can use SessionBean, which is a much better option, isn't it? Thanks
|
 |
Prabhu Venkatachalam
Ranch Hand
Joined: Nov 16, 2005
Posts: 502
|
|
Paul said that,
the BMP Entity bean will be more efficient if you implement the persistence code in a more efficient way than the container does .
Means, for CMP container does persistence and you don't need to worry about it. But for BMP you need take care of everything.
|
 |
 |
|
|
subject: BMP / CMP Entity Bean?
|
|
|