Results 1 to 5 of 5

Thread: how to set jobparam value in writer class

  1. #1
    Join Date
    Jul 2012
    Posts
    3

    Default 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. #2
    Join Date
    Jun 2007
    Location
    Minsk, Belarus
    Posts
    217

    Default

    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>

  3. #3
    Join Date
    Jul 2012
    Posts
    3

    Default

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

  4. #4
    Join Date
    Jun 2007
    Location
    Minsk, Belarus
    Posts
    217

    Default

    Why do you need to set Job Parameter?

  5. #5
    Join Date
    Jul 2012
    Posts
    3

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •