OPEN - BATCH-853: transactional item processing

javadoc: item processing is currently assumed to be non-transactional
This commit is contained in:
robokaso
2008-09-26 12:39:03 +00:00
parent 666f793e89
commit 2accde774f

View File

@@ -47,6 +47,10 @@ import org.springframework.core.AttributeAccessor;
* listener is invoked and the skip count incremented. A retryable exception is
* thus also effectively also implicitly skippable.
*
* Known limitation: ItemProcessor is assumed to be non-transactional. In case
* of rollback caused by error on write the processing phase will not be
* repeated, only the failed write will.
*
* @author Dave Syer
* @author Robert Kasanicky
*/
@@ -181,7 +185,8 @@ public class FaultTolerantChunkOrientedTasklet<T, S> extends AbstractItemOriente
logger.debug("Skipping failed input", e);
}
else {
// skip doesn't apply -> rethrow as if skip limit of zero was exceeded
// skip doesn't apply -> rethrow as if skip limit of zero
// was exceeded
throw new SkipLimitExceededException(0, e);
}