Files
spring-batch/build/reference-epub-work/ch03s09.xhtml
Michael Minella 75ab909314 update
2017-03-23 10:18:33 -05:00

33 lines
2.6 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:pls="http://www.w3.org/2005/01/pronunciation-lexicon" xmlns:ssml="http://www.w3.org/2001/10/synthesis" xmlns:svg="http://www.w3.org/2000/svg"><head><title>Batch Namespace</title><link rel="stylesheet" type="text/css" href="docbook-epub.css"/><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"/><link rel="prev" href="ch03s08.xhtml" title="Item Processor"/><link rel="next" href="ch04.xhtml" title="Chapter 4. Configuring and Running a Job"/></head><body><header/><section class="section" title="Batch Namespace" epub:type="subchapter" id="domainBatchNamespace"><div class="titlepage"><div><div><h2 class="title" style="clear: both">Batch Namespace</h2></div></div></div>
<p>Many of the domain concepts listed above need to be configured in a
Spring <code class="classname">ApplicationContext</code>. 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:</p>
<pre class="programlisting">&lt;beans:beans xmlns="<span class="bold"><strong>http://www.springframework.org/schema/batch</strong></span>"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
<span class="bold"><strong>http://www.springframework.org/schema/batch
http://www.springframework.org/schema/batch/spring-batch-2.2.xsd</strong></span>"&gt;
&lt;job id="ioSampleJob"&gt;
&lt;step id="step1"&gt;
&lt;tasklet&gt;
&lt;chunk reader="itemReader" writer="itemWriter" commit-interval="2"/&gt;
&lt;/tasklet&gt;
&lt;/step&gt;
&lt;/job&gt;
&lt;/beans:beans&gt;</pre>
<p>As long as the batch namespace has been declared, any of its
elements can be used. More information on configuring a
<code class="classname">Job</code> can be found in <a class="xref" href="ch04.xhtml" title="Chapter 4. Configuring and Running a Job">Chapter 4, <em>Configuring and Running a Job</em></a>. More information on configuring a Step can be
found in <a class="xref" href="ch05.xhtml" title="Chapter 5. Configuring a Step">Chapter 5, <em>Configuring a Step</em></a>.</p>
</section><footer/></body></html>