<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:batch="http://www.springframework.org/schema/batch"
	xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.2.xsd
	http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">

	<bean id="transactionManager"
		class="org.springframework.batch.support.transaction.ResourcelessTransactionManager" />

	<bean id="jobRepository"
		class="org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean">
		<property name="transactionManager" ref="transactionManager" />
	</bean>

	<bean id="step1" class="org.springframework.batch.core.step.tasklet.TaskletStep">
		<property name="jobRepository" ref="jobRepository" />
		<property name="transactionManager" ref="transactionManager" />
		<property name="tasklet" ref="dummyTasklet" />
	</bean>

	<bean id="dummyTasklet"
		class="org.springframework.batch.core.configuration.xml.DummyTasklet" />

	<bean id="jobRegistry"
		class="org.springframework.batch.core.configuration.support.MapJobRegistry" />
	<bean
		class="org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor">
		<property name="jobRegistry" ref="jobRegistry" />
	</bean>

	<batch:job id="job2">
		<batch:step id="j2.s1" parent="step1" />
	</batch:job>

	<batch:job id="job1" parent="job">
		<batch:step id="j1.s1" parent="step1" />
	</batch:job>

	<bean id="job" class="org.springframework.batch.core.job.SimpleJob" abstract="true"/>

</beans>