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

META-INF.spring.batch.bootstrap.integration.configuration-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.

There is a newer version: 1.3.1.RELEASE
Show 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"
	xmlns:file="http://www.springframework.org/schema/integration/file"
	xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
		http://www.springframework.org/schema/integration/file http://www.springframework.org/schema/integration/file/spring-integration-file.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">

	<channel id="job-configuration-requests" />
	<channel id="job-configuration-files" />
	<channel id="job-configurations" />
	<publish-subscribe-channel id="job-registrations" />

	<logging-channel-adapter channel="job-registrations" />

	<service-activator input-channel="job-configuration-files" output-channel="job-configurations">
		<beans:bean class="org.springframework.batch.admin.integration.FileToResourceAdapter"/>
	</service-activator>

	<service-activator input-channel="job-configurations" output-channel="job-registrations">
		<bean class="org.springframework.batch.admin.integration.JobConfigurationResourceLoader" xmlns="http://www.springframework.org/schema/beans">
			<property name="jobLoader">
				<bean class="org.springframework.batch.core.configuration.support.DefaultJobLoader">
					<property name="jobRegistry" ref="jobRegistry"/>
				</bean>
			</property>
			<property name="jobService" ref="jobService" />
		</bean>
	</service-activator>

	<service-activator input-channel="job-configuration-requests" output-channel="job-configurations">
		<beans:bean class="org.springframework.batch.admin.integration.JobConfigurationRequestToResourceAdapter" />
	</service-activator>

	<file:inbound-channel-adapter directory="${batch.job.configuration.file.dir}" channel="job-configuration-files"
		filename-pattern=".*\.xml">
		<poller max-messages-per-poll="1" cron="5/1 * * * * *" />
	</file:inbound-channel-adapter>

</beans:beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy