• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to access value set in execution context spring batch job

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a Practitioner class which is used to do the partition for the batch jobs. In partition method , i am creating a list of parameters and setting this list in ExecutionContext.

Below is the code sample.



This parameter value i am going to use in step configuration and have to retrieve it in job xml configuration file.

I am trying to use below




I want to set the value of start index as "1" but not able to understand how to do it.

Please help.

Regards,
Sunil

 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the error message? stack trace?
You might want to do



Note the quotes around data
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic