aspose file tools*
The moose likes Java in General and the fly likes What is the need of EJB / Hibernate for db transcation ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "What is the need of EJB / Hibernate for db transcation ?" Watch "What is the need of EJB / Hibernate for db transcation ?" New topic
Author

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

Navneet Sharma
Greenhorn

Joined: Jan 02, 2013
Posts: 10
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

Joined: Apr 19, 2013
Posts: 199
    
    1
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

Joined: Apr 02, 2007
Posts: 49
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

Joined: Jan 02, 2013
Posts: 10
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

Joined: Oct 27, 2009
Posts: 100

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.


Lokesh
( SCBCD 5, CCENT, SCJP 5 )
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the need of EJB / Hibernate for db transcation ?