<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p"
	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.0.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">

	<bean id="retrySample" parent="simpleJob">
		<property name="steps">
			<bean id="step1" parent="simpleStep"
				class="org.springframework.batch.core.step.item.StatefulRetryStepFactoryBean">
				<property name="itemReader" ref="itemGenerator" />
				<property name="itemWriter" ref="itemWriter" />
				<property name="retryLimit" value="3" />
				<property name="retryableExceptionClasses" value="java.lang.Exception" />
			</bean>
		</property>
	</bean>

	<bean id="itemGenerator" class="org.springframework.batch.sample.item.reader.GeneratingItemReader">
		<property name="limit" value="10" />
	</bean>

	<bean id="itemWriter" class="org.springframework.batch.sample.item.writer.RetrySampleItemWriter" />

</beans>