Skip to content

Add documentation about multiple transaction managers sharing same resource - #36689

Open
Arbaz4Sayyad wants to merge 1 commit into
spring-projects:mainfrom
Arbaz4Sayyad:issue-36684-multiple-transaction-managers
Open

Add documentation about multiple transaction managers sharing same resource#36689
Arbaz4Sayyad wants to merge 1 commit into
spring-projects:mainfrom
Arbaz4Sayyad:issue-36684-multiple-transaction-managers

Conversation

@Arbaz4Sayyad

Copy link
Copy Markdown

Fixes #36684

Add documentation about multiple transaction managers sharing same resource

This PR adds documentation to clarify the behavior when multiple DataSourceTransactionManager instances are configured with the same underlying DataSource.

Changes:

  • Added Javadoc section "Multiple Transaction Managers with the Same Resource" to DataSourceTransactionManager
  • Added reference documentation section in strategies.adoc explaining transaction coordination
  • Included code example demonstrating that transactions from different managers participate in the same transaction when sharing a DataSource

The documentation clarifies that Spring's transaction synchronization is based on the resource (DataSource) itself, not on the transaction manager instance, allowing transactions from different managers to coordinate automatically.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 22, 2026
…source

Addresses spring-projects#36684 by clarifying that when multiple DataSourceTransactionManager
instances are configured with the same DataSource, transactions created by one
manager can participate in existing transactions created by another manager.

Changes:
- Add Javadoc to DataSourceTransactionManager explaining the behavior
- Add reference documentation section with code example

Signed-off-by: Arbaz4Sayyad <arbaz4sayyad@gmail.com>
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) status: waiting-for-triage An issue we've not yet triaged or decided on type: documentation A documentation task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve documentation to clarify coordination of multiple transaction managers

4 participants