File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Two Transaction manager in a single spring context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Two Transaction manager in a single spring context" Watch "Two Transaction manager in a single spring context" New topic
Author

Two Transaction manager in a single spring context

Naveen Jakad
Greenhorn

Joined: Jan 13, 2012
Posts: 6
I am having a configuration where a common jar(lets say 'A') is having transaction manager declaration now two different jars ('B' & 'C') using that common jar('A') .....issue is 'B' & 'C' both include A's spring configuration and there is one more jar 'O' which includes 'B' and 'C' so ultimately I am getting same transaction manager entry from B and from C (transitive declaration) so when I try to perform any transaction in 'O' it fails but when I don't include either 'B' or 'C' in 'O' transaction works fine.........so is there any way by which I can solve my problem.....Thanks in advance...
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Not sure I am completely following the issue, but there can only be one instance of a given bean(assuming you are using the default singleton bean) with a given name in a Spring context. You cannot have multiples. Are any of these applications web-apps or are they all jars?


[How To Ask Questions][Read before you PM me]
 
Don't get me started about those stupid light bulbs.
 
subject: Two Transaction manager in a single spring context