Improve code example in "Configuring and Running a Job" section

The sample that shows how to provide a custom transaction manager
via a BatchConfigurer has been updated to use the constructor
of `DefaultBatchConfigurer` that takes a DataSource.

Issue #3888
This commit is contained in:
Rajesh Chandavaram
2021-04-19 01:51:42 -04:00
committed by Mahmoud Ben Hassine
parent ff2bcdba07
commit 284b7dcff8

View File

@@ -449,8 +449,8 @@ example shows how to provide a custom transaction manager:
[source, java]
----
@Bean
public BatchConfigurer batchConfigurer() {
return new DefaultBatchConfigurer() {
public BatchConfigurer batchConfigurer(DataSource dataSource) {
return new DefaultBatchConfigurer(dataSource) {
@Override
public PlatformTransactionManager getTransactionManager() {
return new MyTransactionManager();