I am trying to understand how to pass parameters to the job steps.

The reader of my batch is the spring batch HibernateCursorItemReader. But before the job is executed I want to read some parameters and pass them to the job. This should not be repeated by every iteration of the steps, but should be done only once.

How is this achived? Do I create a tasklet and let it do the job? How to I pass arguments from a tasklet to another?

Thank you for any help in this matter.