Change default transaction manager type to JdbcTransactionManager

This commits changes the type of the transaction manager
from `DataSourceTransactionManager` to `JdbcTransactionManager`
in the default configuration of `@EnableTask`.

The `JdbcTransactionManager` adds common JDBC exception translation
which is beneficial for Spring Cloud Task to improve exception
handling and error reporting.

Polishing
This commit is contained in:
Mahmoud Ben Hassine
2022-07-22 15:15:26 +02:00
committed by Glenn Renfro
parent 7085cbc735
commit 26c9d43c0b
6 changed files with 27 additions and 22 deletions

View File

@@ -230,7 +230,7 @@ repository) to be used.
|`PlatformTransactionManager`
|A transaction manager to be used when running updates for tasks.
|`DataSourceTransactionManager` if a `DataSource` is used.
|`JdbcTransactionManager` if a `DataSource` is used.
`ResourcelessTransactionManager` if it is not.
|===