INT-1930 added documentation for 'cache-sessions' attribute for FTP/SFTP adapters

This commit is contained in:
Oleg Zhurakousky
2011-07-06 11:42:06 -04:00
parent bf6d58de1b
commit 348e3eb7ea
2 changed files with 32 additions and 0 deletions

View File

@@ -242,4 +242,20 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/ftp
</para>
</section>
<section id="ftp-session-caching">
<title>FTP Session Caching</title>
<para>
One of the optimization implemented by FTP adapters is session caching. Similar to JDBC connection polling FTP Adapters maintain a
default session poll. However there are times when this behavior is not desired (e.g., security etc.).
To disable session caching you can set <code>cache-sessions</code> attribute to <code>false</code> (default is <code>true</code>)
<programlisting language="xml"><![CDATA[<int-ftp:inbound-channel-adapter id="ftpInbound"
channel="ftpChannel"
. . .
cache-sessions="false"
. . .
</int-ftp:inbound-channel-adapter>]]></programlisting>
The same attriibute could be used with Outbound Channel Adapters
</para>
</section>
</chapter>

View File

@@ -184,4 +184,20 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/sftp
</para>
</section>
<section id="sftp-session-caching">
<title>SFTP Session Caching</title>
<para>
One of the optimization implemented by SFTP adapters is session caching. Similar to JDBC connection polling SFTP Adapters maintain a
default session poll. However there are times when this behavior is not desired (e.g., security etc.).
To disable session caching you can set <code>cache-sessions</code> attribute to <code>false</code> (default is <code>true</code>)
<programlisting language="xml"><![CDATA[<int-sftp:inbound-channel-adapter id="ftpInbound"
channel="sftpChannel"
. . .
cache-sessions="false"
. . .
</int-sftp:inbound-channel-adapter>]]></programlisting>
The same attriibute could be used with Outbound Channel Adapters
</para>
</section>
</chapter>