From cfe666f7fe4e6b2de5538bd1328e385b64515e07 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 23 Sep 2010 18:21:03 +0200 Subject: [PATCH] Add retry for in-memory databases in case they lock --- .../src/test/resources/config-h2.properties | 2 +- ...lerantStepJdbcIntegrationTests-context.xml | 32 +++++++++++++++++-- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/spring-batch-integration/src/test/resources/config-h2.properties b/spring-batch-integration/src/test/resources/config-h2.properties index 5502e9250..9e5516dbc 100644 --- a/spring-batch-integration/src/test/resources/config-h2.properties +++ b/spring-batch-integration/src/test/resources/config-h2.properties @@ -1,6 +1,6 @@ # Default database platform is HSQLDB: batch.jdbc.driver=org.h2.Driver -batch.jdbc.url=jdbc:h2:file:target/data/h2 +batch.jdbc.url=jdbc:h2:file:target/data/h2;DB_CLOSE_ON_EXIT=FALSE batch.jdbc.user=sa batch.jdbc.password= batch.jdbc.testWhileIdle=false diff --git a/spring-batch-integration/src/test/resources/org/springframework/batch/integration/chunk/RemoteChunkFaultTolerantStepJdbcIntegrationTests-context.xml b/spring-batch-integration/src/test/resources/org/springframework/batch/integration/chunk/RemoteChunkFaultTolerantStepJdbcIntegrationTests-context.xml index cfc96f3f0..e1fa0b5ec 100644 --- a/spring-batch-integration/src/test/resources/org/springframework/batch/integration/chunk/RemoteChunkFaultTolerantStepJdbcIntegrationTests-context.xml +++ b/spring-batch-integration/src/test/resources/org/springframework/batch/integration/chunk/RemoteChunkFaultTolerantStepJdbcIntegrationTests-context.xml @@ -16,7 +16,10 @@ - + + + + @@ -54,6 +57,31 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -65,7 +93,7 @@ - +