aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate and transaction management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate and transaction management" Watch "Hibernate and transaction management" New topic

Hibernate and transaction management

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
Really excited about Hibernate now. My current EJB system has transactions and it uses Container to manage the transactions by setting transaction attributes. If I go with Hibernate, it seems I don't need an application server any more (correct me if I am wrong), then how do I manage the transactions ?

Should I keep using application server and just convet the entity bean to Hibernate and keep session benas untouched, and then still use container to manage transactions ? This doesn't sound correct to me... How do you guys do ?
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 186
I use Spring - it has a beautiful declarative transaction management support.
Artemesia Lakener
Ranch Hand

Joined: Jun 21, 2005
Posts: 162
Originally posted by Emanuel Kadziela:
I use Spring - it has a beautiful declarative transaction management support.

What if I use JTA to handle the transaction ? Do you think Spring can do what JTA does ?
I agree. Here's the link:
subject: Hibernate and transaction management