Announcement Announcement Module
Collapse
No announcement yet.
how to set jobparam value in writer class Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to set jobparam value in writer class

    Hi ,

    I am using customized writer class..And i want set jobparam value in my writer class.
    can any one help on this.

  • #2
    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>

    Comment


    • #3
      I have written customized writer class.I want to set the Batch JOB Param value in my customized class.

      Comment


      • #4
        Why do you need to set Job Parameter?

        Comment


        • #5
          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.

          Comment

          Working...
          X