2

ftp サーバーに接続するように ftp アダプターを定義しましたが、ftp サーバーのログが表示され、ftp サーバーに送信された要求が表示されません。私のアダプターコードは次のとおりです。

<bean id="ftpClientFactory" class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory">
    <property name="host" value="127.0.0.1"/>
    <property name="port" value="21"/>
    <property name="username" value="banks_reader"/>
    <property name="password" value="123456"/>
    <property name="clientMode" value="2"/>
    <property name="fileType" value="2"/>

</bean>


<int:channel id="inbound1">
    <int:queue/>
</int:channel>
<int:channel id="outbound"/>
<int-ftp:outbound-gateway id="gateway1"
                          session-factory="ftpClientFactory"
                          request-channel="inbound1"
                          reply-channel="outbound"
                          reply-timeout="777"
                          auto-create-local-directory="false"
                          auto-startup="true"
                          filename-pattern="*"
                          remote-file-separator="/"
                          command="ls"
                          command-options="-1 -f"
                          expression="payload"
                          order="1"
                          mput-regex=".*">
    <int:poller fixed-delay="1000"/>
</int-ftp:outbound-gateway>

これは以下を示します:

DEBUG PollingConsumer:208 - Received no Message during the poll, returning 'false' in application log

テスト用のユーザー名とパスワードを変更する場合 (偽のパスとユーザー名) 何も変更せず、例外をスローします

4

1 に答える 1