Skip to content

Elaborate usage of PlatformTransactionManager #4787

Open
@quaff

Description

@quaff

There are many places to configure transactionManager, it's unclear whether it's mandatory or not, from my understanding, it's should be optional since dataSource is mandatory, Spring Batch could create DataSourceTransactionManager() as default, correct me if I'm wrong.

And it's unclear whether it's used for batch metadata operations or JDBC reader/writer of step, if Spring Boot's @BatchDataSource and @BatchTransactionManager are used for separated DataSource, which transactionManager should be used for StepBuilder::chunk?

public <I, O> SimpleStepBuilder<I, O> chunk(int chunkSize, PlatformTransactionManager transactionManager) {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions