Hi ,
I am using customized writer class..And i want set jobparam value in my writer class.
can any one help on this.
Hi ,
I am using customized writer class..And i want set jobparam value in my writer class.
can any one help on this.
Have a look how it is done for reader:
http://static.springsource.org/sprin...l#late-binding
Code:<bean id="testWriter" class="org.springframework.batch.item.file.FlatFileItemWriter" scope="step"> <property name="resource" value="#{jobParameters['input.resource.path']}" /> </bean>
I have written customized writer class.I want to set the Batch JOB Param value in my customized class.
Why do you need to set Job Parameter?
I want to set some flag value in Batch Job param table..For that i want to set BatchJob Param value in my customized class.