wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 1646
    
    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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two Transaction manager in a single spring context
 
Similar Threads
Doubt in ejb
Local transactions in application servers.
Package at multiple locations
using spring to develop java library, needed best practise for configuration?
IBM Websphere 340