33 lines
2.6 KiB
HTML
33 lines
2.6 KiB
HTML
<?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"><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>">
|
||
|
||
<job id="ioSampleJob">
|
||
<step id="step1">
|
||
<tasklet>
|
||
<chunk reader="itemReader" writer="itemWriter" commit-interval="2"/>
|
||
</tasklet>
|
||
</step>
|
||
</job>
|
||
|
||
</beans:beans></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> |