spring-cloud-task icon indicating copy to clipboard operation
spring-cloud-task copied to clipboard

Investigate the invalid creation of transaction manager

Open cppwfs opened this issue 1 year ago • 1 comments

Based on the following comment: https://github.com/spring-cloud/spring-cloud-task/issues/769#issuecomment-2513846920, a transaction manager is still being created eventhough the spring.cloud.task.transaction-manager is being used.

Investigate.

cppwfs avatar Dec 03 '24 12:12 cppwfs

I have set the following property:

spring.cloud.task.transaction-manager=transactionManager

This allows the transactionManager created by DataSourceTransactionManagerAutoConfiguration to work correctly.

However, when I add the following additional setting:

spring.cloud.task.transaction-manager=transactionManager
spring.cloud.task.single-instance-enable=true

It breaks because it cannot find a bean named springCloudTaskTransactionManager.

Image

loki-y-chen avatar Jan 16 '25 08:01 loki-y-chen