Spring Batch: skip after retry
<p>Let's say I have a simple tasklet configured like this:</p>

<pre><code>&lt;batch:tasklet&gt;
  &lt;batch:chunk reader="myItemReader" writer="myItemWriter" commit-interval="20" retry-limit="15" skip-limit="10"&gt;
    &lt;batch:retryable-exception-classes&gt;
      &lt;batch:include class="de.codecentric.MyRetryableException" /&gt;
    &lt;/batch:retryable-exception-classes&gt;
    &lt;batch:skippable-exception-classes&gt;
      &lt;batch:include class="de.codecentric.MySkippableException" /&gt;
    &lt;/batch:skippable-exception-classes&gt;
  &lt;/batch:chunk&gt;
&lt;/batch:tasklet&gt;
</code></pre>

<p>When MyRetryableException is thrown I retry 15 times, but in the end I get <code>org.springframework.retry.RetryException: Non-skippable exception in recoverer while processing; nested exception is</code> The job then terminates.</p>

<p>I want to <strong>skip the item</strong> if 15 retries didn't help instead of completely failing the job. Should I just add RetryException to the list of skippable-exception-classes?</p>