Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Entity Bean is crap ?  RSS feed

 
Gus Mus
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have heard a lot of people complains about Entity Bean, that
it's a crap, slow and etc...
But personally I don't see any crap stuff with Entity Bean.
I am talking about CMP 2.0 ..
Any one can tell me what why Entity Bean is crap ?
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This opinion is often offered by people with a limited exposure to Entity beans, and/or those who have only used them in one container that might have Entity bean support that is not so good. Also, the features of CMP have improved substantially in EJB 2.0 over EJB 1.0 and 1.1, so some people's experiences are rather out of date.
In fact, there are many, many projects using Entity beans (at least CMP) that are very, very happy with both their capabilities and their performance.
Kyle
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of bad things heard about Entiy bean - they do not support different type of relation ship mapping. They are not lightweight when compared to Toplink,JDO etc.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean "different types of relationship mapping"? EJB 2.0 supports 1-1, 1-N and M-N relationships between objects and appropriate mappings to relational backends...
Kyle
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean - M:N mapping can be implemented in different ways in database. EJB containers may not support all types.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
 
Keshav Byri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any consensus. When are Entity Beans best and JDO's best. Say you have just reading the values mostly without much updates which is better.
Are there any locking issues in the database with Entity Beans.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Keshav Byri:
When are Entity Beans best and JDO's best.

You might be interested in reading this article about JDO vs CMP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!