Nov 20th, 2012, 04:34 AM
SkipListener for Xml file reading terminate processing after first skip
I am very new to spring batch and sorry if i am asking a silly question.
I am using StaxEventItemReader and CastorMarshaller to read xml file.
my job configuration is following:
<job id="xmltodb" restartable="true">
<step id="first" >
<chunk reader="xmlReader" writer="dbWriter" processor="itemProcessor" commit-interval="5" skip-limit="10">
<include class="org.springframework.oxm.XmlMappingException "/>
problem is that when there is any exception during reading xml file,it insert records in database just before the exception record and completes the job by COMPLETE as exitstatus.
it handles this error-full record,but does not continue the processing.
Mar 6th, 2013, 09:18 AM
I have the same problem currently.
Tags for this Thread