All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.spring.batch.bootstrap.integration.file-context.xml Maven / Gradle / Ivy

Go to download

Web and service tier of Spring Batch Admin console. Basic use cases include visualization of Batch meta data, and also launching and stopping jobs inside the webapp container.

The newest version!
<?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" xmlns:aop="http://www.springframework.org/schema/aop"
	xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
		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.xsd">

	<publish-subscribe-channel id="input-files" />
	
	<logging-channel-adapter channel="input-files"/>
	
	<gateway id="fileSender" service-interface="org.springframework.batch.admin.service.FileSender"
		default-request-channel="input-files" />

	<bean id="fileService" class="org.springframework.batch.admin.service.LocalFileService"
			xmlns="http://www.springframework.org/schema/beans">
		<property name="fileSender" ref="fileSender" />
	</bean>

	<bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer"
			xmlns="http://www.springframework.org/schema/beans">
		<property name="customEditors">
			<map key-type="java.lang.String" value-type="java.lang.Class">
				<entry key="org.springframework.core.io.Resource" value="org.springframework.batch.admin.service.FileServiceResourceConverter" />
			</map>
		</property>
	</bean>

	<!-- Anonymous bean just to allow PropertyEditor to be wired -->
	<bean class="org.springframework.batch.admin.service.FileServiceResourceConverter"
			xmlns="http://www.springframework.org/schema/beans">
		<property name="fileService" ref="fileService" />
	</bean>

</beans:beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy