-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Doc: JdbcTransactionManager
vs DataSourceTransactionManager
#30802
Comments
The only difference is exception translation: Like with It is effectively never mandatory to use |
JdbcTransactionManager
?JdbcTransactionManager
vs DataSourceTransactionManager
Thanks for the feedback/information. Just a friendly observation, pls take it with the best intentions, could be added some Test classes to show in action all the theory explained? Or better if snippet codes are included - the point is make clear how |
It's not that straightforward to illustrate since transaction managers are usually kicking in behind an Of course, the difference won't matter much if the caller is not specifically handling exceptions to begin with. However, if the caller expects to handle
|
Thanks for the extra explanation ... |
Through the javadoc of PlatformTransactionManager I did realize about the JdbcTransactionManager class. The latter is a subclass of DataSourceTransactionManager.
Normally and practically always the
DataSourceTransactionManager
class is used to define the TX infrastructure forJDBC
andMyBatis
.Now, to be honest, is not clear in the javadoc of the JdbcTransactionManager class when it is mandatory over
DataSourceTransactionManager
or what is/are the advantages over its superclass.I read all the sections of the Transaction Management section of the Reference documentation and the
JdbcTransactionManager
term does not appear.Therefore is not clear with the current documentation when is mandatory use
JdbcTransactionManager
.Thanks for your understanding.
The text was updated successfully, but these errors were encountered: