File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BMP / CMP Entity Bean?

 
Sahana Hussain
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

If I've to use BLOB/CLOB data in my application, which EntityBean (BMP or CMP) will be more efficient?

Thanks
Sahana
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sahana Hussain
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic