• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

difference between ejb and hibernet

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

pls, tell me when use hibernet and when use eb and
whct is difference between hibert net and ejb ?

thanks....
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe you're referring to Hibernate, which is an open source Java Object Relational Mapping (ORM) persistence framework.

EJBs have two different types: session beans and entity beans. Session beans can and often are used in conjunction with classes which have been generated using the Hibernate framework.

EJB Entity beans are a different method of doing ORM. Entity beans do provide a high level of transactional safety for systems where there are a lot of concurrent transactions accessing the same data (such as airline reservations, for example). For applications that don't require this, Hibernate and other ORM frameworks will probably work better and be easier to implement.

Also note that EJB 3.0, which is due to be released soon is much better, easier, and has many of the same features as Hibernate.

This has nothing to do with Struts, however, and would be better posted in either the EJB forum or the Object Relational Mapping forum.
[ December 22, 2005: Message edited by: Merrill Higginson ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic