-
Nov 14th, 2011, 10:18 AM
#1
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!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules