diff --git a/src/site/docbook/reference/step.xml b/src/site/docbook/reference/step.xml index d8b9f2e9a..778be7e09 100644 --- a/src/site/docbook/reference/step.xml +++ b/src/site/docbook/reference/step.xml @@ -507,8 +507,9 @@ records are logged as well, which will be covered later when discussing listeners. <step id="step1"> - <tasklet skip-limit="10"> - <chunk reader="flatFileItemReader" writer="itemWriter" commit-interval="10"> + <tasklet> + <chunk reader="flatFileItemReader" writer="itemWriter" commit-interval="10" skip-limit="10"> <skippable-exception-classes> org.springframework.batch.item.file.FlatFileParseException </skippable-exception-classes> @@ -537,8 +538,9 @@ identify which exceptions should cause failure and skip everything else: <step id="step1"> - <tasklet skip-limit="10"> - <chunk reader="flatFileItemReader" writer="itemWriter" commit-interval="10"> + <tasklet> + <chunk reader="flatFileItemReader" writer="itemWriter" commit-interval="10" skip-limit="10"> <skippable-exception-classes> java.lang.Exception </skippable-exception-classes> @@ -1035,16 +1037,14 @@ ItemWriter. Spring Batch provides the TaskletStep for this scenario. - The Tasklet is a simple interface - that has one method, execute, which will - be a called repeatedly by the TaskletStep - until it either returns RepeatStatus.FINISHED - or throws an exception to signal a failure. Each call to - the Tasklet is wrapped in a - transaction. Tasklet implementors might - call a stored procedure, a script, or a simple SQL update - statement. To create a - TaskletStep, the 'ref' attribute of the + The Tasklet is a simple interface that has + one method, execute, which will be a called + repeatedly by the TaskletStep until it either + returns RepeatStatus.FINISHED or throws an exception to + signal a failure. Each call to the Tasklet is + wrapped in a transaction. Tasklet implementors + might call a stored procedure, a script, or a simple SQL update statement. + To create a TaskletStep, the 'ref' attribute of the <tasket/> element should reference a bean defining a Tasklet object; no <chunk/> element should be used within the <tasket/>: