Is StepExecutionListener the only way to get StepExecution which i need to get JobParameters? Or is there any other way to get the JobParameters in processing?
Please advice.
Thanks,
Prashant
Is StepExecutionListener the only way to get StepExecution which i need to get JobParameters? Or is there any other way to get the JobParameters in processing?
Please advice.
Thanks,
Prashant
In 2.0, you can access the JobParameters directly via the late-binding approach:
Code:<bean class="org.springframework.batch.item.file.FlatFileItemReader" scope="step"> <property name="resource" value="#{jobParameters[inputFile]}" /> … </bean>