You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression in TransactionAspectSupport.determineTransactionManager(…) [SPR-12577] #17178
If multiple PlatformTransactionManager beans are registered in an ApplicationContext, a raw @Transactional declaration should use the transaction manager bean that is determined via TransactionAspectSupport.transactionManagerBeanName. The changes for #17145 now completely ignore that property as the TransactionAttribute.getQualifier() is mistakenly compared to null. A not set qualifier will result in an empty String for annotation based TransactionAttributeSource instances so that the else clause can never be reached when using @Transactional and thus the configured bean name gets ignored. This subsequently leads to a NoUniqueBeanDefinitionException due to the by-type lookup returning two candidate beans.
Affects: 4.1.4
Issue Links:
DATAJPA-657 TransactionManager reference is ignored when using Spring 4.1.4 ("is depended on by")
Activity
spring-projects-issues commentedon Dec 31, 2014
Stéphane Nicoll commented
Proper behaviour has been restored with an explicit test about it. The repro project now works fine on all use cases.
I have also created #17185 to review that qualifier/cache logic in more details.