Skip to content

Configure Batch with the auto-configured PlatformTransactionManager #32330

Closed
@wilkinsona

Description

@wilkinsona

In Batch 5, its PlatformTransactionManager is no longer a bean. This hopefully makes it possible for us to configure Batch to use the auto-configuration transaction manager rather than creating a Batch-specific transaction manager as we currently do. This is complicated by @BatchDataSource. If a user configures a Batch-specific DataSource, we will need to ensure that the transaction manager that Batch is configured to use is using the same DataSource. This may be broken in 2.7 at the moment when JPA and @BatchDataSource are used together. I believe this can result in Batch using a JpaPlatformTransactionManager that's backed by the default entity manager factory and DataSource while using its own Batch-specific DataSource.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions