Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two Transaction manager in a single spring context

 
Naveen Jakad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic