
jobs.multilineOrderIo.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-batch-samples
Show all versions of spring-batch-samples
Example batch jobs using Spring Batch Core and Execution.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"> <bean id="fileItemReader" class="org.springframework.batch.item.file.FlatFileItemReader"> <property name="resource" ref="fileInputLocator" /> <property name="lineMapper"> <bean class="org.springframework.batch.item.file.mapping.DefaultLineMapper"> <property name="lineTokenizer" ref="orderFileTokenizer" /> <property name="fieldSetMapper"> <bean class="org.springframework.batch.item.file.mapping.PassThroughFieldSetMapper" /> </property> </bean> </property> </bean> <bean id="fileItemWriter" class="org.springframework.batch.item.file.FlatFileItemWriter"> <property name="resource" ref="fileOutputLocator" /> <property name="lineAggregator"> <bean class="org.springframework.batch.item.file.transform.RecursiveCollectionLineAggregator" /> </property> </bean> <bean id="delimitedLineAggregator" class="org.springframework.batch.item.file.transform.DelimitedLineTokenizer" /> <bean id="fixedLineAggregator" class="org.springframework.batch.item.file.transform.FormatterLineAggregator" /> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy