Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong TransactionManager selected when mixing @Transactional with and w/o qualifier [SPR-12606] #17207

Closed
spring-projects-issues opened this issue Jan 9, 2015 · 1 comment
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jan 9, 2015

Alexander Imfeld opened SPR-12606 and commented

When using multiple TransactionManagers and declarative transaction management with @Transactional (with and w/o qualifier) and @EnableTransactionManagement, the TransactionInterceptor will lookup and store the default transaction manager in TransactionAspectSupport#determineTransactionManager in case there is no qualifier. This TransactionManager will then also be used in case there actually is a qualifier (as soon as a transactionManager is set it in determineTransactionManager, it will be used for all further calls).

Seems to me it's not possible to have multiple TransactionManagers (e.g. 'transactionManager' and 'anotherTransactionManager) and mix qualified with non-qualified Transactional annotations (e.g. @Transactional and @Transactional("anotherTransactionManager"))

Shouldn't qualifier based TransactionManager lookup be the primary mechanism to determine the TransactionManager in TransactionAspectSupport?


Affects: 4.1.3

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jan 9, 2015

Juergen Hoeller commented

I suppose this has been fixed along with #17145 for the 4.1.4 release already. Please upgrade to 4.1.4 and double-check that...

Note that there has been a side effect of that 4.1.4 fix which has been fixed for the upcoming 4.1.5 (#17178) and is available in recent 4.1.5 snapshots. Please try such a snapshot in case any problems remain with 4.1.4 for you.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants