-
Jan 23rd, 2013, 07:00 AM
#1
ftp inbound-channel-adapter download files
Hello all,
I am facing some trouble on a Web Application. I have the following configuration (I have omitted non relative stuff)
<int:channel id="ftpChannel">
<int:queue />
</int:channel>
<bean id="ftpClientFactory" class="org.springframework.integration.ftp.session .DefaultFtpSessionFactory">
<property name="host" value="${host}"/>
<property name="port" value="${port}"/>
<property name="username" value="${username}"/>
<property name="password" value="${password}"/>
<property name="clientMode" value="0"/>
<property name="fileType" value="2"/>
<property name="bufferSize" value="100000"/>
</bean>
<int-ftp:inbound-channel-adapter id="ftpInbound"
channel="ftpChannel"
session-factory="ftpClientFactory"
charset="UTF-8"
auto-create-local-directory="true"
delete-remote-files="true"
filename-pattern="*.txt"
remote-directory="/the/remote/directory/"
remote-file-separator="/"
local-directory="/the/local/directory/">
<int
oller fixed-rate="1000" max-messages-per-poll="-1"/>
</int-ftp:inbound-channel-adapter>
I would expect that whenever a new file would be created at ${host}:/the/remote/directory/ it would be downloaded locally to /the/local/directory. But this doesn't. Instead, after activating all relevant logs I get:
SimplePool:177 - Obtained org.springframework.integration.ftp.session.FtpSes sion@29ab0eef from pool.
CachingSessionFactory:109 - Releasing Session back to the pool.
CachingSessionFactory:109 - Releasing Session back to the pool.
SimplePool:210 - Releasing org.springframework.integration.ftp.session.FtpSes sion@29ab0eef back to the pool
SourcePollingChannelAdapter:71 - Received no Message during the poll, returning 'false'
What am I missing? Any help is appreciated
thanx
/axel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules