Open spring-projects-issues opened 9 years ago
Géraud commented
This issue title might not be very accurate... It's more about being able to reference a step
bean in XML batch configuration
It looks like in XML config, I'm not able to use a reference to a step
defined in another configuration resource;
something like a ref attribute on batch:step
XML element:
<beans:beans>
<flow id="main-flow">
<step ref="step1" next="step2"/>
<step ref="step2"/>
</flow>
</beans:beans>
Géraud opened BATCH-2444 and commented
I tried to mix Java configuration classes and XML configuration files in a Spring Batch project.
In a nutshell: I want to use Java configurations everywhere, except for the job flow declaration (flow declared in an XML file).
Here is the complete
Job
declaration:This configuration leads to a
BeanCreationException
I created a JUnit test (available on GitHub) to illustrate this bug: https://github.com/galak75/spring-batch-labs/blob/master/src/test/java/org/galak75/mixedconfig/batch/MixConfigJobTest.java
Affects: 3.0.5
Reference URL: https://github.com/galak75/spring-batch-labs/blob/master/src/test/java/org/galak75/mixedconfig/batch/MixConfigJobTest.java