You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
When a TransactionProxyFactoryBean is configured in a XML-File then the application stops starting with an exception when initializing the datasource because the properties not injected at this time. The Bean is created because Spring tries to find out on wich class is the Annotation EnableBatchProcessing. The error happens only when Spring-Batch-Dependencies in the classpath.
Environment
Spring Batch 3.0.9, Java Version: 17.0.2, H2-Database
Steps to reproduce
Add an XML-File with the configuration of an TransactionProxyFactorBean like the following
Use this configuration with ImportResource-Annotation
Expected behavior
The Spring-Context should be loaded. With Spring Boot 2.x and Spring Batch 4.x this is not a problem
Minimal Complete Reproducible example
Attached is a minimal example. BattestApplicationTests fails. After removing the ImportResource-Annotation in BatchConfig the Test is green
Bug description
When a TransactionProxyFactoryBean is configured in a XML-File then the application stops starting with an exception when initializing the datasource because the properties not injected at this time. The Bean is created because Spring tries to find out on wich class is the Annotation EnableBatchProcessing. The error happens only when Spring-Batch-Dependencies in the classpath.
Environment
Spring Batch 3.0.9, Java Version: 17.0.2, H2-Database
Steps to reproduce
Add an XML-File with the configuration of an TransactionProxyFactorBean like the following
Use this configuration with ImportResource-Annotation
Expected behavior
The Spring-Context should be loaded. With Spring Boot 2.x and Spring Batch 4.x this is not a problem
Minimal Complete Reproducible example
Attached is a minimal example. BattestApplicationTests fails. After removing the ImportResource-Annotation in BatchConfig the Test is green
batchTest.zip
The text was updated successfully, but these errors were encountered: