wood burning stoves 2.0*
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: 374
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 ?
It is sorta covered in the JavaRanch Style Guide.
subject: Hibernate and transaction management
Similar Threads
Stateless EJB and transactions
Deploying Hibernate with JPA
which driver
Transaction EJB session bean
Transaction handling in Websphere Application Server 4.0