From 947351e52d6aefda80ccf0c10bc588811f30873a Mon Sep 17 00:00:00 2001 From: lucasward Date: Tue, 10 Feb 2009 20:52:56 +0000 Subject: [PATCH] BATCH-1062: Added a section to the domain chapter discussing the namespace, with links to more specifics in the job and step chapters. --- docs/src/site/docbook/reference/domain.xml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/src/site/docbook/reference/domain.xml b/docs/src/site/docbook/reference/domain.xml index 47bb0bc52..85701fd0a 100644 --- a/docs/src/site/docbook/reference/domain.xml +++ b/docs/src/site/docbook/reference/domain.xml @@ -999,4 +999,34 @@ written out. More details about the ItemProcessor interface can be found in . + +
+ Batch Namespace + + Many of the domain concepts listed above need to be configured in a + Spring ApplicationContext. While there are + implementations of the interfaces above that can be used in a standard + bean definition, a namespace has been provided for ease of + configuration: + + <beans:beans xmlns="http://www.springframework.org/schema/batch" + xmlns:beans="http://www.springframework.org/schema/beans" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd + http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.0.xsd> + + <job id="ioSampleJob"> + <step id="step1"> + <tasklet reader="itemReader" processor="itemProcessor" writer="itemWriter" commit-interval="2"/> + </step> + </job> + + </beans:beans> + + As long as the batch namespace has been declared, any of its + elements can be used. More information on configuring a + Job can be found in . More information on configuring a Step can be + found in . +