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

Spring Resource Transaction Management

 
James Dekker
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using Spring transactions who's responsible for managing the resource transaction?
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple answer all though I doubt it is what you are looking for is you (the developer) are responsible. I am sure you were probably asking for something more but I would need more details.
 
James Dekker
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean does this happen via the IoC Container or through an XML configuration?
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be configured with XML or Java (since Spring 3.1).

The two pieces of the Spring framework responsible for transactions are

spring-transaction - classes from the transaction abstraction layer to support of the Java Transaction API and integration with application servers.
spring-aspects - if you are using declarative transactions (@Transactional) you need this. It contains classes for integration with the AspectJ AOP library.

Configuring Transactional support is really quite simple. If you really want to understand whats happening behind the scenes for this to happen once again I would suggest the reference documentation, there is a short novel worth of material on just this topic.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic