This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 187
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Hibernate and transaction management
It's not a secret anymore!