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-simple-nobeans/src/test/java/org/javaee7/batch/samples/chunk/simple/nobeans/BatchChunkSimpleNoBeansTest.java
+36-1Lines changed: 36 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,31 @@
17
17
importstaticorg.junit.Assert.assertEquals;
18
18
19
19
/**
20
+
* The Batch specification provides a Chunk Oriented processing style. This style is defined by enclosing into a
21
+
* transaction a set of reads, process and write operations via +javax.batch.api.chunk.ItemReader+,
22
+
* +javax.batch.api.chunk.ItemProcessor+ and +javax.batch.api.chunk.ItemWriter+. Items are read one at a time, processed
23
+
* and aggregated. The transaction is then committed when the defined +checkpoint-policy+ is triggered.
24
+
*
25
+
* include::myJob.xml[]
26
+
*
27
+
* A very simple job is defined in the +myJob.xml+ file. Just a single step with a reader, a processor and writer.
28
+
*
20
29
* @author Roberto Cortez
21
30
*/
22
31
@RunWith(Arquillian.class)
23
32
publicclassBatchChunkSimpleNoBeansTest {
33
+
/**
34
+
* We're just going to deploy the application as a +web archive+. Note the inclusion of the following files:
35
+
*
36
+
* [source,file]
37
+
* ----
38
+
* /META-INF/batch-jobs/myjob.xml
39
+
* ----
40
+
*
41
+
* The +myjob.xml+ file is needed for running the batch definition. This sample is also missing the +beans.xml+ for
42
+
* CDI discovery, since for Java EE 7 this file is now optional, but you need to annotated batch dependent beans
0 commit comments