I am using spring-batch to copy data from one datasource into another. I have multiple xml files with the defintions of the necessary steps and jobs. They are all pretty similar with a lot of duplicate "code". The only differences are ususally the SQL that selects data from the first datasource and the name of the table where the data is inserted in the second datasource.
I would like to create a parent job that consists of the steps and jobs to copy the data and only takes the SQL and the name of the target table as a parameter. I know, i can set a parent job with the 'parent' attribute:
<batch:job id="copyDataJob1" parent="AbstractCopyJob">
...
</batch>
But how can I pass and use these parameters in the definition of the parent job?