Skip to content

Latest commit

 

History

History

SpringBatchCsvToXml

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

SpringBatchCsvToXml

Runtime Environment

Short & Quick introduction

Prepare the input flat file and corresponding domain object /mapped POJO

  • src/main/resources/ExamResult.txt
  • com.websystique.springbatch.model.ExamResult
  • com.websystique.springbatch.LocalDateAdapter

Create a FieldSetMapper

  • com.websystique.springbatch.ExamResultFieldSetMapper

Create an ItemProcessor

  • com.websystique.springbatch.ExamResultItemProcessor

Add a Job listener(JobExecutionListener)

  • com.websystique.springbatch.ExamResultJobListener

Create Spring Context with job configuration

  • src/main/resource/spring-batch-context.xml

Create Main application to finally run the job

  • com.websystique.springbatch.Main

Links