|
56 | 56 | <para><programlisting><?xml version="1.0" encoding="UTF-8"?>
|
57 | 57 | <beans xmlns="http://www.springframework.org/schema/beans"
|
58 | 58 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
59 |
| - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
60 |
| - http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd"> |
| 59 | + xsi:schemaLocation="http://www.springframework.org/schema/beans |
| 60 | + http://www.springframework.org/schema/beans/spring-beans.xsd |
| 61 | + http://xmlns.jcp.org/xml/ns/javaee |
| 62 | + http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd"> |
61 | 63 |
|
62 |
| - <!-- Bean defined that references an implementation of the javax.batch.api.Batchlet interface --> |
| 64 | + <!-- javax.batch.api.Batchlet implementation --> |
63 | 65 | <bean id="fooBatchlet" class="io.spring.FooBatchlet">
|
64 | 66 | <property name="prop" value="bar"/>
|
65 | 67 | </bean>
|
|
75 | 77 |
|
76 | 78 | <para>The assembly of Spring contexts (imports, etc) works with JSR-352 jobs just as it would with any other
|
77 | 79 | Spring based application. The only difference with a JSR-352 based job is that the entry point for the
|
78 |
| - context definition will be the job definition found in /META-INF/batch-jobs/</para> |
| 80 | + context definition will be the job definition found in /META-INF/batch-jobs/.</para> |
79 | 81 |
|
80 | 82 | <para>To use the thread context class loader approach, all you need to do is provide the fully qualified class
|
81 | 83 | name as the ref. It is important to note that when using this approach or the batch.xml approach, the class
|
|
165 | 167 | <section id="jsrProcessingModels">
|
166 | 168 | <title>Processing Models</title>
|
167 | 169 |
|
168 |
| - <para>JSR-352 provides the same two basic processing models that Spring Batch does</para> |
| 170 | + <para>JSR-352 provides the same two basic processing models that Spring Batch does:</para> |
169 | 171 | <para>
|
170 | 172 | <itemizedlist>
|
171 | 173 | <listitem>
|
172 | 174 | <para>Item based processing - Using an <classname>javax.batch.api.chunk.ItemReader</classname>, an
|
173 | 175 | optional <classname>javax.batch.api.chunk.ItemProcessor</classname>, and an
|
174 |
| - <classname>javax.batch.api.chunk.ItemWriter</classname></para> |
| 176 | + <classname>javax.batch.api.chunk.ItemWriter</classname>.</para> |
175 | 177 | </listitem>
|
176 | 178 | <listitem>
|
177 | 179 | <para>Task based processing - Using a <classname>javax.batch.api.Batchlet</classname>
|
|
186 | 188 | <title>Item based processing</title>
|
187 | 189 | <para>Item based processing in this context is a chunk size being set by the number of items read by an
|
188 | 190 | <classname>ItemReader</classname>. To configure a step this way, specify the
|
189 |
| - <classname>item-count</classname> and optionally configure the <classname>checkpoint-policy</classname> |
190 |
| - as item (this is the default). |
| 191 | + <classname>item-count</classname> (which defaults to 10) and optionally configure the |
| 192 | + <classname>checkpoint-policy</classname> as item (this is the default). |
191 | 193 | <programlisting>...
|
192 | 194 | <step id="step1">
|
193 | 195 | <chunk checkpoint-policy="item" item-count="3">
|
|
0 commit comments