This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate and transaction management

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Spring - it has a beautiful declarative transaction management support.
 
Artemesia Lakener
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic