<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration" xmlns:int-jms="http://www.springframework.org/schema/integration/jms" xmlns:int-file="http://www.springframework.org/schema/integration/file" 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.xsd http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd http://www.springframework.org/schema/integration/file http://www.springframework.org/schema/integration/file/spring-integration-file.xsd"> <int:channel id="msgPrintChannel" /> <int:channel id="batchJobChanel" /> <int:channel id="xmer" /> <int-file:inbound-channel-adapter directory="D:/keyur/tech/data/batch" channel="xmer" /> <int:transformer input-channel="xmer" output-channel="batchJobChanel" ref="xmerBean" method="buildJobParams"/> <int:service-activator input-channel="batchJobChanel" ref="jobExecutor" method="executeJob" output-channel="msgPrintChannel"/> <int:service-activator input-channel="msgPrintChannel" ref="util" method="printMsg" requires-reply="false"/> <bean id="xmerBean" class="com.techrefresh.spring.batch.integration.xmer.JobParamXmer" /> <bean id="jobExecutor" class="com.techrefresh.spring.batch.JobExecutor"> <property name="jobLauncher" ref="jobLauncher"/> <property name="titanicJob" ref="titanicJob"/> </bean> <bean id="util" class="com.techrefresh.spring.batch.util.Utility" /> <int:poller fixed-rate="100" id="defaultPoller" default="true" /> </beans>