META-INF.spring.batch.bootstrap.integration.restart-context.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/integration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-1.0.xsd"> <channel id="job-launches" /> <channel id="job-restarts" /> <service-activator input-channel="job-restarts" output-channel="job-requests"> <beans:bean class="org.springframework.batch.admin.integration.JobNameToJobRestartRequestAdapter"> <beans:property name="jobLocator" ref="jobRegistry" /> <beans:property name="jobExplorer" ref="jobExplorer" /> </beans:bean> </service-activator> <service-activator input-channel="job-launches" output-channel="job-requests"> <beans:bean class="org.springframework.batch.admin.integration.StringToJobLaunchRequestAdapter"> <beans:property name="jobLocator" ref="jobRegistry" /> </beans:bean> </service-activator> </beans:beans>