내가 LS 구성된 간단한 FTP 아웃 바운드 게이트웨이가 *에 FTP 아웃 바운드 게이트웨이 LS 항상 빈,이 여러 다른 FTP 연결, 내 개발 윈도우 상자에 완벽하게 작동 RM,봄 통합 - 유닉스
<int-ftp:outbound-gateway id="gatewayLS"
cache-sessions="false"
session-factory="incomingCachingSessionFactory"
request-channel="inboundChannel"
command="ls"
command-options="-1"
expression="'${ftp.pull.remote.directory}'"
reply-channel="toSplitter" />
<channel id="toSplitter">
<interceptors>
<wire-tap channel="logger" />
</interceptors>
</channel>
<logging-channel-adapter id="logger"
log-full-message="true" level="DEBUG" />
<splitter id="splitter" input-channel="toSplitter"
output-channel="toGet" />
<int-ftp:outbound-gateway id="gatewayGET"
cache-sessions="false"
local-directory="${ftp.pull.local.directory}"
session-factory="incomingCachingSessionFactory"
request-channel="toGet"
reply-channel="downloadedFileChannel"
command="get"
command-options="-P"
expression="headers['file_remoteDirectory'] + '/' + payload" />
를 얻을 수 서버.
내 로그 출력DEBUG: org.springframework.integration.ftp.session.DefaultFtpSessionFactory - Connected to server [ftp.domain.com:21]
DEBUG: org.springframework.integration.ftp.gateway.FtpOutboundGateway - handler 'org.springframework.integration.ftp.gateway.FtpOutboundGateway#0' sending reply Message: [Payload=[test_file.zip]][Headers={timestamp=1343143242030, id=56758ef9-57e5-43d6-b8b7-c36539d9fd0d, file_remoteDirectory=/images/}]
예상
"서버에 연결"과 "응답 메시지를 보내"bewteen 시간도
그러나, 한 번 CentOS의 서버를 2 배 배치 꽤 많은 순간이다 (5.8 및 6.2), LS의 응답 채널은 항상 emtpy 입니다.
DEBUG: org.springframework.integration.ftp.session.DefaultFtpSessionFactory - Connected to server [ftp.domain.com:21]
DEBUG: org.springframework.integration.ftp.gateway.FtpOutboundGateway - handler 'org.springframework.integration.ftp.gateway.FtpOutboundGateway#0' sending reply Message: [Payload=[]][Headers={timestamp=1343143961046, id=31759d6f-201e-4028-8943-0a68ae64db81, file_remoteDirectory=/images/}]
"서버에 연결"과 "응답 메시지 보내기"사이의 시간도 비정상적으로 길다.
좀 더 많은 정보를 원하시면 :
3 시스템이 동일한 코드베이스에서 WAR를 구축 받는다는을 사용하고 있습니다.
2 CentOS는 기계 FTP 서버
- 은 ftp에 확실히 파일이
같은 결과
으로, 나는 여러 가지 관련이없는 FTP 서버를 시도다른 데이터 센터에있는 서버는 "ncftp"및 "ftp"를 사용하여 확인 된 centos 상자에서 액세스 할 수 있습니다.
이 게시물은 prett입니다. 모호하지만, 그것은 나를 미치게합니다. 어떤 생각이 크게