Results 1 to 2 of 2

Thread: StepExecutionListener

  1. #1

    Default StepExecutionListener

    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

  2. #2
    Join Date
    Feb 2008
    Posts
    488

    Default

    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •