-
Nov 20th, 2012, 04:34 AM
#1
SkipListener for Xml file reading terminate processing after first skip
Hi,
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" >
<tasklet transaction-manager="transactionManager">
<chunk reader="xmlReader" writer="dbWriter" processor="itemProcessor" commit-interval="5" skip-limit="10">
<skippable-exception-classes>
<include class="org.springframework.oxm.XmlMappingException "/>
</skippable-exception-classes>
</chunk>
<listeners>
<listener ref="skiplistener"/>
</listeners>
</tasklet>
</step>
</job>
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.
Thanks
-
Mar 6th, 2013, 09:18 AM
#2
I have the same problem currently.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules