diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetryTemplate.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetryTemplate.java
index 90246b0cd..8107378c8 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetryTemplate.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/retry/support/RetryTemplate.java
@@ -176,7 +176,7 @@ public class RetryTemplate implements RetryOperations {
retryPolicy.registerThrowable(context, throwable);
if (retryPolicy.shouldRethrow(context)) {
- logger.debug("Abort retry for policy: count=" + context.getRetryCount());
+ logger.debug("Rethrow in retry for policy: count=" + context.getRetryCount());
rethrow(throwable);
}
diff --git a/spring-batch-integration/pom.xml b/spring-batch-integration/pom.xml
index d610cdabb..916f93204 100644
--- a/spring-batch-integration/pom.xml
+++ b/spring-batch-integration/pom.xml
@@ -1,218 +1,206 @@
-
-
- 4.0.0
- spring-batch-integration
- Enterprise Integration
- jar
-
- org.springframework.batch
- spring-batch
- 1.1.0.DEV-SNAPSHOT
- ..
-
-
- 1.0.0.CI-SNAPSHOT
-
-
-
- default
-
- true
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- true
-
-
-
-
-
-
- test
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- false
-
-
-
-
-
-
-
-
- javax.jms
- com.springsource.javax.jms
- 1.1.0
- compile
-
-
- junit
- junit
- 4.4
- test
-
-
- cglib
- cglib-nodep
- test
-
-
- org.springframework.integration
- org.springframework.integration
- ${spring.integration.version}
- compile
-
-
- org.springframework
- org.springframework.context
-
-
- org.springframework
- org.springframework.aop
-
-
- org.springframework
- org.springframework.transaction
-
-
-
-
- org.springframework.integration
- org.springframework.integration.adapter
- ${spring.integration.version}
- compile
-
-
- org.springframework
- org.springframework.web
-
-
- org.springframework
- org.springframework.aop
-
-
- org.springframework
- org.springframework.context
-
-
- org.springframework
- org.springframework.context.support
-
-
- org.springframework
- org.springframework.jms
-
-
- org.springframework
- org.springframework.transaction
-
-
- org.apache.commons
- com.springsource.org.apache.commons.net
-
-
- org.apache.oro
- com.springsource.org.apache.oro
-
-
-
-
- org.springframework
- spring-context
- ${spring.framework.version}
- compile
-
-
- org.springframework
- spring-aop
- ${spring.framework.version}
- compile
-
-
- org.springframework
- spring-jms
- ${spring.framework.version}
- compile
-
-
- org.springframework
- spring-tx
- ${spring.framework.version}
- compile
-
-
- org.springframework
- spring-test
- ${spring.framework.version}
- test
-
-
- org.springframework.batch
- spring-batch-core
- ${project.version}
- compile
-
-
- org.springframework
- spring-context
-
-
- org.springframework
- spring-beans
-
-
- org.springframework
- spring-core
-
-
- org.springframework
- spring-aop
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
-
- 1.5
- 1.5
-
-
-
-
-
-
- springsource-external
- http://repository.springsource.com/maven/bundles/external
-
-
- springsource-release
- http://repository.springsource.com/maven/bundles/release
-
-
- springsource-milestone
- http://repository.springsource.com/maven/bundles/milestone
-
-
-
- springsource-snapshot
- http://repository.springsource.com/maven/bundles/snapshot
-
-
-
+
+
+ spring-batch
+ org.springframework.batch
+ 1.1.0.DEV-SNAPSHOT
+ ..
+
+ 4.0.0
+ spring-batch-integration
+ Enterprise Integration
+
+
+
+ maven-compiler-plugin
+
+ 1.5
+ 1.5
+
+
+
+
+
+
+
+ true
+
+
+
+
+ maven-surefire-plugin
+
+ true
+
+
+
+
+
+
+ test
+
+
+
+ maven-surefire-plugin
+
+ false
+
+
+
+
+
+
+
+
+ springsource-external
+ http://repository.springsource.com/maven/bundles/external
+
+
+ springsource-release
+ http://repository.springsource.com/maven/bundles/release
+
+
+ springsource-milestone
+ http://repository.springsource.com/maven/bundles/milestone
+
+
+ springsource-snapshot
+ http://repository.springsource.com/maven/bundles/snapshot
+
+
+
+
+ javax.jms
+ com.springsource.javax.jms
+ 1.1.0
+ compile
+
+
+ junit
+ junit
+ 4.4
+ test
+
+
+ cglib
+ cglib-nodep
+ test
+
+
+ org.springframework.integration
+ org.springframework.integration
+ ${spring.integration.version}
+ compile
+
+
+ org.springframework.context
+ org.springframework
+
+
+ org.springframework.aop
+ org.springframework
+
+
+ org.springframework.transaction
+ org.springframework
+
+
+
+
+ org.springframework.integration
+ org.springframework.integration.adapter
+ ${spring.integration.version}
+ compile
+
+
+ org.springframework.web
+ org.springframework
+
+
+ org.springframework.aop
+ org.springframework
+
+
+ org.springframework.context
+ org.springframework
+
+
+ org.springframework.context.support
+ org.springframework
+
+
+ org.springframework.jms
+ org.springframework
+
+
+ org.springframework.transaction
+ org.springframework
+
+
+ com.springsource.org.apache.commons.net
+ org.apache.commons
+
+
+ com.springsource.org.apache.oro
+ org.apache.oro
+
+
+
+
+ org.springframework
+ spring-context
+ ${spring.framework.version}
+ compile
+
+
+ org.springframework
+ spring-aop
+ ${spring.framework.version}
+ compile
+
+
+ org.springframework
+ spring-jms
+ ${spring.framework.version}
+ compile
+
+
+ org.springframework
+ spring-tx
+ ${spring.framework.version}
+ compile
+
+
+ org.springframework
+ spring-test
+ ${spring.framework.version}
+ test
+
+
+ org.springframework.batch
+ spring-batch-core
+ ${project.version}
+ compile
+
+
+ spring-context
+ org.springframework
+
+
+ spring-beans
+ org.springframework
+
+
+ spring-core
+ org.springframework
+
+
+ spring-aop
+ org.springframework
+
+
+
+
+
+ 1.0.0.CI-SNAPSHOT
+
+
\ No newline at end of file
diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/retry/PollableSourceRetryTests.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/retry/PollableSourceRetryTests.java
index d80c97fea..0dafec109 100644
--- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/retry/PollableSourceRetryTests.java
+++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/retry/PollableSourceRetryTests.java
@@ -19,6 +19,9 @@ import org.springframework.batch.item.ItemKeyGenerator;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.ItemRecoverer;
import org.springframework.batch.item.support.ListItemReader;
+import org.springframework.batch.repeat.ExitStatus;
+import org.springframework.batch.repeat.RepeatCallback;
+import org.springframework.batch.repeat.RepeatContext;
import org.springframework.batch.repeat.interceptor.RepeatOperationsInterceptor;
import org.springframework.batch.repeat.policy.SimpleCompletionPolicy;
import org.springframework.batch.repeat.support.RepeatTemplate;
@@ -31,6 +34,7 @@ import org.springframework.integration.channel.MessageChannel;
import org.springframework.integration.dispatcher.DirectChannel;
import org.springframework.integration.endpoint.EndpointTrigger;
import org.springframework.integration.endpoint.SourceEndpoint;
+import org.springframework.integration.endpoint.interceptor.EndpointInterceptorAdapter;
import org.springframework.integration.message.GenericMessage;
import org.springframework.integration.message.Message;
import org.springframework.integration.message.MessageSource;
@@ -38,7 +42,7 @@ import org.springframework.integration.message.MessageTarget;
import org.springframework.integration.scheduling.PollingSchedule;
import org.springframework.integration.scheduling.SimpleTaskScheduler;
import org.springframework.integration.scheduling.TaskScheduler;
-import org.springframework.integration.util.ErrorHandler;
+import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.interceptor.TransactionInterceptor;
import org.springframework.util.StringUtils;
@@ -68,6 +72,8 @@ public class PollableSourceRetryTests {
}
};
+ private PlatformTransactionManager transactionManager = new ResourcelessTransactionManager();;
+
@SuppressWarnings("unchecked")
@Test
public void testSimpleTransactionalPolling() throws Exception {
@@ -86,10 +92,10 @@ public class PollableSourceRetryTests {
MessageSource