Two Transaction manager in a single spring context
posted 3 years ago
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...
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?