• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Spring Resource Transaction Management

 
Ranch Hand
Posts: 229
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When using Spring transactions who's responsible for managing the resource transaction?
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 229
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



reply
    Bookmark Topic Watch Topic
  • New Topic