From 5cb9834c23ed3e9059b9f3e301768f3871cf6e1b Mon Sep 17 00:00:00 2001 From: dsyer Date: Wed, 16 Sep 2009 16:59:11 +0000 Subject: [PATCH] OPEN - issue BATCH-1369: Change semantics of @AfterChunk to execute outside transaction Moved afterChunk() call --- .../springframework/batch/core/step/tasklet/TaskletStep.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java index 1fa0522e8..4422b8b85 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java @@ -279,8 +279,6 @@ public class TaskletStep extends AbstractStep { } } - chunkListener.afterChunk(); - } finally { @@ -390,6 +388,8 @@ public class TaskletStep extends AbstractStep { } } + chunkListener.afterChunk(); + // Check for interruption after transaction as well, so that // the interrupted exception is correctly propagated up to // caller