spring-batch
spring-batch copied to clipboard
Allow configure TransactionManager for jobOperator.stop [BATCH-2524]
Nico opened BATCH-2524 and commented
SimpleJobOperator stop() is decorated with @Transactional, therefore
we cannot configure the transactionManager name as the other components , forcing the implementation of org.springframework.transaction.annotation.TransactionManagementConfigurer to set the transactionManager to use.
Affects: 3.0.7
Any update about this issue?
I am running into the same problem in one of listeners where I am explicitly calling the SimpleJobOperator to stop the execution.
Any update about this issue?
No, we are working on the upcoming v4.3 and this issue is not planned for it. We will let you know in which version this issue will be addressed. Contributions are welcome.
Along with https://github.com/spring-projects/spring-batch/issues/4195, both the transaction manager and the transaction attributes are now configurable in the proxy created around the JobOperator. This is indeed more flexible than the usage of a statically defined @Transactional on methods.
cc @nkuflk @Matheus-Rangel @minimalistinnovator