File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB or HIbernate better one? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB or HIbernate better one?" Watch "EJB or HIbernate better one?" New topic

EJB or HIbernate better one?

Priya Nain

Joined: Sep 17, 2005
Posts: 1
Hi all,
I am working in Hibernate and planing to learn EJB, is it a good jump? I know very little about EJB so can any one gimme a small introduction ? kindly waiting for your reply.

Thanks & Regards ,

Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

This has been discussed quite a lot in the Object Relational Mapping forum.

Hibernate is considered to be a lot more lightweight because you can use it to persist POJOs, whereas EJBs (specifically Entity if we are talking persistence) are a lot more heavyweight. This however is excpected to change with the release of EJB3.

Have a look through the posts in the ORM forum and you will see all these points discussed.


It is sorta covered in the JavaRanch Style Guide.
subject: EJB or HIbernate better one?