I could able to send a file Document.txt in local directory to remote directory , but couldnt able to FTP the same file ,if i delete the file in remote and try to send from local again .Poller is working fine ,since it picks up if i put different file in same folder .Can i have some insight on this ?
enter code here
<!-- Inbound adapter channels for reading the local directory files in processed folder -->
<file:inbound-channel-adapter id="inboundProcessed"
channel="processedChannel"
filename-pattern="*.txt"
directory="$dina-communication.batch-{localDirectory}"
>
<int:poller fixed-rate="10000" />
</file:inbound-channel-adapter>
<int:channel id="processedChannel"></int:channel>
<!-- Outbound adapter channels for FTP the files in processed folder to remote directory -->
<int-ftp:outbound-channel-adapter id="ftpProcessed"
channel="processedChannel"
session-factory="ftpClientFactory"
remote-directory="$dina-communication.batch-{remoteDirectory}"
>
<int-ftp:request-handler-advice-chain>
<bean class="org.springframework.integration.handler.advice.ExpressionEvaluatingRequestHandlerAdvice">
<property name="onSuccessExpression" value="payload.delete()" />
</bean>
</int-ftp:request-handler-advice-chain>
</int-ftp:outbound-channel-adapter>