From ffcbb68f2a7786b7c2974a16a33408b32a029412 Mon Sep 17 00:00:00 2001 From: dsyer Date: Wed, 27 Feb 2008 10:15:34 +0000 Subject: [PATCH] Externalise commit interval for football job --- .../src/main/resources/batch.properties | 2 -- .../src/main/resources/jobs/footballJob.xml | 8 ++++--- .../src/main/resources/jobs/parallelJob.xml | 24 +++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/spring-batch-samples/src/main/resources/batch.properties b/spring-batch-samples/src/main/resources/batch.properties index 024830388..926b89d14 100644 --- a/spring-batch-samples/src/main/resources/batch.properties +++ b/spring-batch-samples/src/main/resources/batch.properties @@ -16,8 +16,6 @@ batch.schema.script=schema-hsqldb.sql batch.business.schema.script=business-schema-hsqldb.sql batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer batch.lob.handler.class=org.springframework.jdbc.support.lob.DefaultLobHandler -batch.football.job.commit.interval=2 - # Other platforms: # org.springframework.jdbc.support.incrementer.DB2SequenceMaxValueIncrementer diff --git a/spring-batch-samples/src/main/resources/jobs/footballJob.xml b/spring-batch-samples/src/main/resources/jobs/footballJob.xml index 5bf0b75a9..d94281131 100644 --- a/spring-batch-samples/src/main/resources/jobs/footballJob.xml +++ b/spring-batch-samples/src/main/resources/jobs/footballJob.xml @@ -17,7 +17,8 @@ - + + @@ -34,7 +35,6 @@ - @@ -44,9 +44,10 @@ ref="dataSource" /> + - + @@ -136,6 +137,7 @@ games.file.name=games-small.csv player.file.name=player-small.csv + job.commit.interval=2 + + + @@ -42,11 +45,17 @@ - - - + + + + + + + - - - - - - -