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
I will run the profiler and I hope I get lucky to solve this.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>
Cheers
Vito


Reply With Quote