Created
May 17, 2016 21:28
-
-
Save darrellpratt/7320f2305b7c0d5c4bb093137cdf4e42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<step id="processAlertStep" next="ftpFinalFileStep"> | |
<partition step="processAlertPartionStep" partitioner="multiFilePartitioner"> | |
<handler task-executor="alertsTaskExecutor" /> | |
</partition> | |
</step> | |
<bean id="multiFilePartitioner" class="org.springframework.batch.core.partition.support.MultiResourcePartitioner" scope="step"> | |
<property name="resources" value="#{batchProperties['alerts.input.file.name']}" /> | |
</bean> | |
<step id="processAlertPartionStep" xmlns="http://www.springframework.org/schema/batch"> | |
<tasklet transaction-manager="transactionManager"> | |
<chunk reader="alertsPartitionFileReader" processor="alertProcessor" writer="finalAlertFileWriter" commit-interval="5000" /> | |
<listeners> | |
<listener ref="alertPartitionsFileNameListener" /> | |
</listeners> | |
</tasklet> | |
</step> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment