This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate n EJB  RSS feed

 
Amardeep Salkar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why Hibernate if EJB is there or vice versa ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBs are not a persistance only technology, though they used to include a ORM solution.

Object Relational Mapping tools are only about persistance. They don't have any of the other capabilities of EJBs (declarative security, transaction handling, scalability, distribution etc. ).
 
Amardeep Salkar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Sturrock:
EJBs are not a persistance only technology, though they used to include a ORM solution.

Object Relational Mapping tools are only about persistance. They don't have any of the other capabilities of EJBs (declarative security, transaction handling, scalability, distribution etc. ).


Tell me about CMP and BMP because they shows persistences...
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These things don't exist in EJB 3. Earlier versions had Entity Beans, which were the EJB version of an ORM. I'm not sure why anyone would use Entity Beans at all (serach this forum, thier failing have been discussed many times before), Hibernate started out (partly) as a replacement for this fairly unusable technology.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!