All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring-config.jobs.standard-import-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="standardBatchImport" xmlns="http://www.springframework.org/schema/batch" restartable="true">
		<listeners>
			<listener ref="LogFilePreProcessorTask" />
			<listener ref="EndJobListenerSendMail" />
		</listeners>

		<step id="doBatchImportJob" next="PostprocessLogs">
			<tasklet>
				<chunk reader="VLCSVToBeanReader" processor="VLLineBeanCompositeProcessor" writer="VLLineBeanCompositeWriter" commit-interval="1" skip-limit="1000000000">
					
					<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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy