Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Configuring a job for online system

  1. #21

    Default

    Hi Chudak,

    I am using Spring Batch 1.1.2.
    My biggest question is how to clean up the 'prototype' data beans used by org.springframework.batch.item.file.mapping.BeanWr apperFieldSetMapper

    Here is my config

    Code:
      	<bean id="dataSupplierFieldSetMapper"
            class="org.springframework.batch.item.file.mapping.BeanWrapperFieldSetMapper">
        	<property name="prototypeBeanName" value="dataSupplier" />
      	</bean>
    
      	<bean id="dataSupplier"
            class="com.company.DataSupplier"
            scope="prototype" />
    
    	<bean id="dataSupplierFixedLengthLineTokenizer"
            class="org.springframework.batch.item.file.transform.FixedLengthTokenizer">
         
        	<property name="names" value="cobolSupplierCode,name,oracleSupplierSiteCode,title,firstName,middleName,lastName,department,areaCode,contactPhone,email,oracleOperatingUnitName,eol" />
        	<property name="columns" value="1-6,
    										7-31,
    										32-51,
    										52-71,
    										72-91,
    										92-111,
    										112-131,
    										132-151,
    										152-171,
    										172-191,
    										192-241,
    										242-291,
    										292-1500" />
      	</bean>
    I will run the profiler and I hope I get lucky to solve this.

    Cheers

    Vito

  2. #22
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    Are you suggesting there is a memory leak? If so we would like to have a JIRA so we can track it.

    By the way, your dataSupplier bean doesn't need to be a bean definition at all because BeanWrapperFieldSetMapper can create beans with a default constructor by itslef.

  3. #23

    Default

    I have created a JIRA entry for this. http://jira.springframework.org/browse/BATCH-940

Posting Permissions

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