Results 1 to 2 of 2

Thread: Does Spring Batch have a Session like scope?

  1. #1
    Join Date
    Mar 2008
    Posts
    5

    Default Does Spring Batch have a Session like scope?

    Hi,

    Is there a way to place an object in session or job scope? I'd like to reuse data that will be referenced by multiple steps. Is there a way to achieve this?

    If this solution doesn't exist I can store this data in a stage table and reference it from my read query for each step.

    Thanks,
    Brad

  2. #2

    Default

    Look at some of my posts or "Passing an object between Listener and Writer".

    You can implement this by using Listeners, StepExecution and ExecutionContext.

Posting Permissions

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