spring-config.jobs.standard-export-job.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" xmlns:p="http://www.springframework.org/schema/p" > <job id="standardBatchExport" xmlns="http://www.springframework.org/schema/batch" restartable="true"> <listeners> <listener ref="LogFilePreProcessorTask" /> <listener ref="EndJobListenerSendMail" /> </listeners> <step id="doBatchExportJob" next="PostprocessLogs"> <tasklet> <chunk reader="VLJDBCItemReader" writer="VLFlatItemWriter" commit-interval="100" skip-limit="10"> <skippable-exception-classes> <include class="io.github.jsoagger.core.server.batch.common.exception.VLBatchSkippableException" /> <exclude class="io.github.jsoagger.core.server.batch.common.exception.VLBatchNonSkippableException" /> <exclude class="java.lang.Exception"/> </skippable-exception-classes> <listeners> <listener ref="SkipListener" /> </listeners> </chunk> <!-- Transaction management --> <transaction-attributes isolation="READ_COMMITTED" propagation="REQUIRED"/> </tasklet> </step> <step id="PostprocessLogs" next="SendNotifications"> <tasklet ref="LogFilePostProcessorTask" /> </step> <step id="SendNotifications"> <tasklet ref="SendNotificationTask"/> </step> </job> </beans>