• 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:

Two Transaction manager in a single spring context

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
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
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?
reply
    Bookmark Topic Watch Topic
  • New Topic