Dynamic Throttle Limit for FaultTolerantStepFactoryBean
I need to define the throttleLimit dynamically. Is there a way to use step-scoped throttle-limit with a FaultTolerantStepFactoryBean definition ?
I tried the one below, but no luck.
<bean id="baseStep" class="org.springframework.batch.core.step.item.Fa ultTolerantStepFactoryBean" abstract="true">
..
<property name="throttleLimit" ref="throttleLimit"/>
</bean>
<bean id="throttleLimit" scope="step" class="java.lang.Integer" factory-method="valueOf">
<constructor-arg value="#{jobParameters[throttleLimit]}" />
</bean>
Thanks!