Announcement Announcement Module
Collapse
No announcement yet.
Accessing the JobExecutionContext from the MultiResourceItemReader delegate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing the JobExecutionContext from the MultiResourceItemReader delegate

    Hi guys,

    I am currently encountering some issues in getting an object stored in the ExecutionContext from a delegate (i.e. a subclass of FlatFileItemReader) of the MultiResourceItemReader.

    I have also tried implementing the StepExecutionListener and also used the @beforeStep / @afterStep annotations to get the object from the context.

    I was successful in retrieving the object from the context using the mentioned methods for Steps and Sub-steps (i.e. chunk processing) but not for the delegates. Do you have any suggestions on this? Any help would be much appreciated

    Thanks!

  • #2
    Binding to #{stepExecutionContext} and #{jobExecutionContext} in step scope is a good way to get read-only access to the context data. If you need to write it you need to implement ItemStream (and register your stream with the step).

    Comment


    • #3
      Thanks Dave! I'll try your suggestion

      Comment


      • #4
        Need the code for implementing StepExecutionListener
        and accessing the attributes between steps and Job.

        Comment

        Working...
        X