This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate and transaction management" Watch "Hibernate and transaction management" New topic
Author

Hibernate and transaction management

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 369
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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Hibernate and transaction management
 
Similar Threads
Transaction handling in Websphere Application Server 4.0
Transaction EJB session bean
Deploying Hibernate with JPA
which driver
Stateless EJB and transactions