Comments (1)
This is a consequence of the different meaning of "transaction" for those two calls: TransactionAspectSupport.currentTransactionStatus()
exposes the locally declared transaction boundary as managed by the aspect (even if it ends up participating in an outer transaction at runtime where the local boundary is less relevant), whereas TransactionSynchronizationManager.getCurrentTransactionName()
exposes the current (outer) resource transaction.
Since TransactionAspectSupport.currentTransactionStatus()
is a rather internal API and shares behavior with TransactionCallback
exposure in TransactionTemplate
usage, the behavior should rather remain as it is. We need to document that difference though and suggest TransactionSynchronizationManager
as the primary API to interact with the actual resource transaction.
from spring-framework.
Related Issues (20)
- `@ActiveProfiles` is not honored on `@SpringBootApplication` even in test context HOT 5
- Clarify supported targets for annotations in the TestContext framework
- RestClient can not use both parameters, ClientHttpRequestFactory and ClientHttpRequestInterceptor HOT 1
- Missing documentation for JSP TagLib `spring.tld` HOT 1
- Failure to process a bean definition ahead-of-time with an instance supplier should provide more contextual information
- Document ControllerAdviceBean as internal usage HOT 9
- Refine exception handling in AOT process to provide additional context
- I have a code cleanliness obsession
- non-blocking call delayed accasionally. HOT 1
- Javadoc snapshots no longer published since the move to GitHub Actions HOT 2
- Javadoc snapshots no longer published since the move to GitHub Actions HOT 1
- http trace logging settings adapter HOT 1
- Upgrade to Reactor 2024.0.0-M2
- Upgrade to Reactor 2023.0.6
- Upgrade to Reactor 2022.0.19 HOT 1
- Upgrade to Reactor 2020.0.44 HOT 1
- cancel HOT 1
- Virtual threads are not working in Schedulers and Non-Web projects from the enabled property in application.yml HOT 2
- Make use of JSONAssert in public API optional HOT 5
- Spring cache should support TTL by design HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-framework.