Fix up packaging for simple template

This commit is contained in:
dsyer
2009-05-02 06:43:16 +00:00
parent 2d8ec2d061
commit 89912c311c
3 changed files with 54 additions and 53 deletions

View File

@@ -1,36 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="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-2.5.xsd">
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:batch="http://www.springframework.org/schema/batch"
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<description>Example job to get you started. It provides a skeleton for a typical batch application.</description>
<bean id="job1" parent="simpleJob">
<property name="steps">
<list>
<bean id="step1" parent="simpleStep">
<property name="itemReader">
<bean class="example.ExampleItemReader" />
</property>
<property name="itemWriter">
<bean class="example.ExampleItemWriter" />
</property>
</bean>
</list>
</property>
</bean>
<description>Example job to get you started. It provides a
skeleton for a typical batch application.</description>
<bean id="simpleJob" class="org.springframework.batch.core.job.SimpleJob" abstract="true">
<property name="jobRepository" ref="jobRepository" />
<property name="restartable" value="true" />
</bean>
<batch:job id="job1">
<batch:step id="step1" parent="simpleStep">
<batch:tasklet>
<batch:chunk reader="reader" writer="writer"/>
</batch:tasklet>
</batch:step>
</batch:job>
<bean id="simpleStep" class="org.springframework.batch.core.step.item.SimpleStepFactoryBean"
<bean id="reader" class="example.ExampleItemReader" />
<bean id="writer" class="example.ExampleItemWriter" />
<bean id="simpleStep"
class="org.springframework.batch.core.step.item.SimpleStepFactoryBean"
abstract="true">
<property name="transactionManager" ref="transactionManager" />
<property name="jobRepository" ref="jobRepository" />
<property name="startLimit" value="100" />
<property name="commitInterval" value="1" />
</bean>
</beans>