File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the need of EJB / Hibernate for db transcation ?

 
Navneet Sharma
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I know some might think it is a stupid question but I really want to know the need of EJB / Hiberante. If we can make connection object using JNDI / DriverManager and play with DB, why do we require EJB / Hibernate of if any suits ?
 
Carles Gasques
Ranch Hand
Posts: 199
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It's just an abstraction layer, makes your life easy and avoids a lot of boiler plate code.


Best regards,
 
bala nannaka
Ranch Hand
Posts: 49
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
they will provide lot of benefits like session management,exception handling,transaction management,type mapping ,etc.. otherwise you need to take care of those things
 
Navneet Sharma
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All

Thanks for your valuable reply. I want to understand more in details. Please explain with example of each functionality.

Many thanks in advance !
 
lokesh sree
Ranch Hand
Posts: 100
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like similar discussions have already happened on this forum itself.. for example this thread http://www.coderanch.com/t/216213/ORM/databases/Advantage-ORM-JDBC
Hope these might help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic