aspose file tools*
The moose likes Spring and the fly likes Spring Resource Transaction Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Resource Transaction Management" Watch "Spring Resource Transaction Management" New topic
Author

Spring Resource Transaction Management

James Dekker
Ranch Hand

Joined: Dec 09, 2006
Posts: 215
When using Spring transactions who's responsible for managing the resource transaction?
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

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.


[How To Ask Questions][Read before you PM me]
James Dekker
Ranch Hand

Joined: Dec 09, 2006
Posts: 215
I mean does this happen via the IoC Container or through an XML configuration?
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

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.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Resource Transaction Management