This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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