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
Transaction manager cache fails to repopulate when multiple transaction managers defined [SPR-14609] #19177
When TransactionAspectSupport is initialized, the transaction manager cache is populated by the setTransactionManager method. At this point there can be multiple TransactionInterceptor instances defined, each with its own cache, with no conflicts.
However, as soon as the transaction cache entry in TransactionAspectSupport is cleared by the garbage collector, the transaction manager bean is then looked up by type, which leads to a NoUniqueBeanDefinitionException if multiple transaction managers are defined in your application context.
TransactionAspectSupport stores a given PlatformTransactionManager instance as a strong reference (again) while retaining the soft cache for retrieved PlatformTransactionManager beans.
Activity
spring-projects-issues commentedon Aug 24, 2016
Juergen Hoeller commented
This is the trigger to undo #19080 for the (still unreleased) 4.2.8, whereas we'll try to fix it retaining #19080 for 4.3.3.
spring-projects-issues commentedon Aug 24, 2016
Juergen Hoeller commented
TransactionAspectSupportstores a givenPlatformTransactionManagerinstance as a strong reference (again) while retaining the soft cache for retrievedPlatformTransactionManagerbeans.