You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: batch/chunk-optional-processor/src/test/java/org/javaee7/batch/chunk/optional/processor/BatchChunkOptionalProcessorTest.java
+36-1
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,30 @@
19
19
importstaticorg.junit.Assert.assertEquals;
20
20
21
21
/**
22
+
* The Batch specification provides a Chunk Oriented processing style. This style is defined by enclosing into a
23
+
* transaction a set of reads, process and write operations via +javax.batch.api.chunk.ItemReader+,
24
+
* +javax.batch.api.chunk.ItemProcessor+ and +javax.batch.api.chunk.ItemWriter+. Items are read one at a time, processed
25
+
* and aggregated. The transaction is then committed when the defined +checkpoint-policy+ is triggered.
26
+
*
27
+
* include::myJob.xml[]
28
+
*
29
+
* A very simple job is defined in the +myJob.xml+ file. The processor is optional, so this is just a single step with a
30
+
* reader and a writer.
31
+
*
22
32
* @author Roberto Cortez
23
33
*/
24
34
@RunWith(Arquillian.class)
25
35
publicclassBatchChunkOptionalProcessorTest {
36
+
/**
37
+
* We're just going to deploy the application as a +web archive+. Note the inclusion of the following files:
38
+
*
39
+
* [source,file]
40
+
* ----
41
+
* /META-INF/batch-jobs/myjob.xml
42
+
* ----
43
+
*
44
+
* The +myjob.xml+ file is needed for running the batch definition.
0 commit comments