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:
committed by
Mahmoud Ben Hassine
parent
ff2bcdba07
commit
284b7dcff8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user