apache camel - How to stop file transferring in spring-batch -
i have created spring-batch job reading files local directory , upload remote directory through ftp using camel-spring-batch. doing same using chunk. spring batch job configuration looks : <bean id="consumertemplate" class="org.apache.camel.impl.defaultconsumertemplate" init-method="start" destroy-method="stop"> <constructor-arg ref="camelcontext"/> </bean> <bean id="producertemplate" class="org.apache.camel.impl.defaultproducertemplate" scope="step" init-method="start" destroy-method="stop"> <constructor-arg ref="camelcontext"/> </bean> <bean id="localfilereader" class="com.camel.springbatch.reader.localfilereader" scope="step" destroy-method="stop"> <constructor-arg value="file:#{jobparameters['dirpath']}"/> <constructor-arg ref="consumert...