aspose file tools
The moose likes Performance and the fly likes BMP / CMP Entity Bean? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "BMP / CMP Entity Bean?" Watch "BMP / CMP Entity Bean?" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BMP / CMP Entity Bean?
 
Similar Threads
BMP Vs CMP
Entity EJB and BLOB
J2EE technology would allow the system to interact with the LDAP server?
How do you DB?
Writing test case without database operations