FTP에서 파일을 복사하려고하는데 로컬 시스템에 배치하려고합니다.인바운드 채널이 스프링에서 작동하지 않습니다.
<bean name="publishStockSessionFactory"
class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory">
<property name="host"
value="10.255.255.1" />
<property name="port" value="21" />
<property name="username"
value="test" />
<property name="password"
value="test" />
</bean>
<bean id="stockLocalDirectory" class="java.lang.String">
<constructor-arg
value="/opt/test" />
</bean>
<bean id="stockRemoteDirectory" class="java.lang.String">
<constructor-arg
value="stock" />
</bean>
<int-ftp:inbound-channel-adapter
local-directory="# {stockLocalDirectory}"
channel="stockFilesFromFTP"
session-factory="publishStockSessionFactory"
remote-directory="#{stockRemoteDirectory}"
delete-remote-files="true"
filename-regex="Stock*.csv" >
<int:poller fixed-rate="120000" max-messages-per-poll="100" />
</int-ftp:inbound-channel-adapter>
<int:publish-subscribe-channel id="stockFilesFromFTP" />
그리고 시작하는 동안 오류가오고가
INFO | jvm 1 | main | 2013/01/15 22:20:02.715 | 2013-01-15 22:20:02,699
ERROR task-scheduler-4 ErrorHandler : failed to send message
to channel 'stockFilesFromFTP' within timeout: -1
우리가
log4j.logger.org.springframework.aop=DEBUG
org.springframework.integration.channel.DirectChannel=DEBUG
org.springframework.integration.channel.MessagePublishingErrorHandler=DEBUG
org.springframework.integration.config.xml.PointToPointChannelParser=DEBUG
있습니다 당신 수 켜져 디버그합니다 수 있습니다 :이 들어
나는 인바운드 채널 구성이 생성 이 오류를 어떻게 디버깅 할 수 있는지 제안 해주십시오.
감사합니다. 위의 디버그는 켜져 있지만 로그에는 정보가 없습니다. 위의 구성에서 채널 구독자를 추가했습니다. 그게 맞습니까? – sree
org.springframework.integration –
Rusell에 대해 DEBUG를 켭니다. org.springframework.integration을 켜고 통합과 관련된 로그에 정보가 없습니다. 인바운드 인 경우 근본 원인을 어떻게 알 수 있습니까? – sree