
Originally Posted by
Dave Syer
You can still use a factory bean approach to set up bean definitions for th steps where you need more control, and then bind them into a <job/> via <step parent="..."/>.
I could not bind a step with a parent step that has a backoff policy to a job that is configured using namespace as the step configuration still gets processed by StepParserStepFactoryBean and the following error is thrown:
Code:
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'backOffPolicy' of bean class [org.springframework.batch.core.configuration.xml.StepParserStepFactoryBean]: Bean property 'backOffPolicy' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Did you mean do not use namespace at all?