Skip to content

Instantly share code, notes, and snippets.

@darrellpratt
Created May 17, 2016 21:28
Show Gist options
  • Save darrellpratt/7320f2305b7c0d5c4bb093137cdf4e42 to your computer and use it in GitHub Desktop.
Save darrellpratt/7320f2305b7c0d5c4bb093137cdf4e42 to your computer and use it in GitHub Desktop.
<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