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

spring.integration-config-sudoor.xml Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  sudoor-server-lib
  %%
  Copyright (C) 2013 - 2015 Shark Xu
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as
  published by the Free Software Foundation, either version 2 of the
  License, or (at your option) any later version.
  
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/gpl-2.0.html>.
  #L%
  -->

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
		http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd
		http://www.springframework.org/schema/integration/ftp http://www.springframework.org/schema/integration/ftp/spring-integration-ftp.xsd"

	xmlns:context="http://www.springframework.org/schema/context" xmlns:int="http://www.springframework.org/schema/integration" xmlns:task="http://www.springframework.org/schema/task"
	xmlns:int-ftp="http://www.springframework.org/schema/integration/ftp">

	<int:poller default="true" max-messages-per-poll="10" cron="*/10 * * * * *" />

	<task:executor id="taskExecutor" pool-size="20" queue-capacity="20" />

	<int:publish-subscribe-channel id="eventPublishChannel" />

	<int:publish-subscribe-channel id="asyncEventPublishChannel" task-executor="taskExecutor" />

	<int:channel id="ftpChannel">
<!-- 		<int:queue capacity="25" /> -->
	</int:channel>

	<bean id="ftpSessionFactory" class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory">
		<property name="host" value="${sudoor.ftp.host}" />
		<property name="port" value="${sudoor.ftp.port}" />
		<property name="username" value="${sudoor.ftp.username}" />
		<property name="password" value="${sudoor.ftp.password}" />
		<property name="clientMode" value="${sudoor.ftp.clientMode}" />
		<property name="fileType" value="${sudoor.ftp.fileType}" />
		<property name="bufferSize" value="${sudoor.ftp.bufferSize}" />
	</bean>

	<int-ftp:outbound-channel-adapter id="ftpOutbound" channel="ftpChannel" session-factory="ftpSessionFactory" charset="UTF-8"
		remote-file-separator="/" auto-create-directory="true" remote-directory="${sudoor.ftp.directory}" mode="REPLACE" />

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy