• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why Entity Bean is crap ?

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read page 11 and 12
http://otn.oracle.com/tech/java/architect/architecting_for_persistence.pdf
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic