xml speaking, here's a configuration example using RunIdIncrementer :
Code:
<bean id="jobLauncher"
class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
<property name="jobRepository" ref="jobRepository"/>
</bean>
<bean id="jobRepository"
class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean">
<property name="dataSource" ref="testDataSource"/>
<property name="transactionManager" ref="transactionManager"/>
</bean>
<bean id="jobExplorer" class="org.springframework.batch.core.explore.support.JobExplorerFactoryBean">
<property name="dataSource" ref="testDataSource"/>
</bean>
<bean name="jobParamatersIncrementer" class="org.springframework.batch.core.launch.support.RunIdIncrementer">
</bean>
<!-- your specific job should have the incrementer injected-->
<job id="testJob" xmlns="http://www.springframework.org/schema/batch" restartable="true"
incrementer="jobParamatersIncrementer"
>
....
</job>
For us we use the CommandLineJobRunner to launch the jobs and to be able to use the job incrementer -next option should be specified.
hope this helps.