Results 1 to 2 of 2

Thread: How to pre-populate ExecutionContext because JobParameter can not accept an object

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    26

    Default How to pre-populate ExecutionContext because JobParameter can not accept an object

    I want to send big arraylist to my Job so that I can iterate through ListItemReader. I can not send through JobParameter as it does not accept Object. I may be able to save arraylist in a reference and then access the arraylist in item-reader's beforeStep method. But then, I have to take care of multiple jobs running in parallel.

    But is there any elegant way to pre-populate executionContext when JobParameters are created and job is run using JobLauncher ?

    Thanks

  2. #2
    Join Date
    Mar 2007
    Posts
    26

    Default

    can anybody help ? Thanks

Posting Permissions

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