-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpringBatchJob.xml
More file actions
59 lines (56 loc) · 2.45 KB
/
Copy pathSpringBatchJob.xml
File metadata and controls
59 lines (56 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<bean:beans xmlns="http://www.springframework.org/schema/batch"
xmlns:bean="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/batch
http://www.springframework.org/schema/batch/spring-batch-3.0.xsd">
<!-- <job id="helloWorldJob"> <step id="step_hello" next="step_world"> <tasklet
ref="testTasklet" /> </step> <step id="step_world"> <tasklet ref="testTasklet"
/> </step> </job> -->
<!--
<job id="testJob" restartable="true">
<listeners>
<listener ref="testJobListener" />
</listeners>
<step id="testStep" allow-start-if-complete="true">
<tasklet start-limit="5">
<listeners>
<listener ref="testStepListener" />
<listener ref="testRetryListener" />
<listener ref="testItemReaderListener" />
<listener ref="testItemWriterListener" />
<listener ref="testItemProcessListener" />
<listener ref="testSkipListener" />
<listener ref="testRepeatListener" />
</listeners>
<chunk reader="reader" writer="writer" commit-interval="2"
processor="process" retry-limit="10" skip-limit="5">
<retryable-exception-classes>
<include class="org.springframework.dao.TransientDataAccessException" />
<exclude
class="org.springframework.dao.PessimisticLockingFailureException" />
</retryable-exception-classes>
<skippable-exception-classes>
<include
class="org.springframework.batch.item.file.FlatFileParseException" />
</skippable-exception-classes>
<listeners>
<listener ref="testChunkListener" />
</listeners>
<retry-listeners>
</retry-listeners>
</chunk>
</tasklet>
</step>
</job>
-->
</bean:beans>