Moved job-repository= from <tasklet/> to <job/> since it is not allowed on an inline step (only on a standalone step).
This commit is contained in:
@@ -76,9 +76,9 @@
|
||||
the Spring Batch namespace can be used:</para>
|
||||
|
||||
<programlisting>
|
||||
<job id="sampleJob">
|
||||
<job id="sampleJob" job-repository="jobRepository">
|
||||
<step id="step1">
|
||||
<tasklet job-repository="jobRepository" transaction-manager="transactionManager">
|
||||
<tasklet transaction-manager="transactionManager">
|
||||
<chunk reader="itemReader" writer="itemWriter" commit-interval="10"/>
|
||||
<tasklet>
|
||||
</step>
|
||||
@@ -110,7 +110,10 @@
|
||||
that will be used to periodically store the
|
||||
<classname>StepExecution</classname> and
|
||||
<classname>ExecutionContext</classname> during processing (just
|
||||
before committing).</para>
|
||||
before committing). For an in-line <step/> (one defined
|
||||
within a <job/>) it is an attribute on the <job/>
|
||||
element; for a standalone step, it is defined as an attribute of
|
||||
the on the <tasklet/>.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
@@ -600,7 +603,7 @@
|
||||
the <classname>Step</classname> can be configured with a list of
|
||||
exceptions that should not cause rollback. The
|
||||
no-rollback-exception-classes element is a list of transaction
|
||||
attributes, separated by commas or newlines. </para>
|
||||
attributes, separated by commas or newlines.</para>
|
||||
|
||||
<programlisting>
|
||||
<step id="step1">
|
||||
|
||||
Reference in New Issue
Block a user