INT-1670 updated SFTP/FTP documentation to reflect recent changes
This commit is contained in:
@@ -88,7 +88,7 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/ftp
|
||||
it will be removed form the pool and the new one will be created.
|
||||
<note>
|
||||
If you experience connectivity problems and would like to trace session creation as well as see which session are
|
||||
polled you may enable it by setting logger to TRACE level (e.g., log4j.category.org.springframework.integration.ftp=DEBUG)
|
||||
polled you may enable it by setting logger to TRACE level (e.g., log4j.category.org.springframework.integration.file=TRACE)
|
||||
</note>
|
||||
</para>
|
||||
|
||||
|
||||
@@ -42,7 +42,18 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/sftp
|
||||
<beans:property name="port" value="22"/>
|
||||
<beans:property name="user" value="kermit"/>
|
||||
</beans:bean>]]></programlisting>
|
||||
|
||||
|
||||
<para>
|
||||
Every time an adapter requests a session object from the <classname>SftpSessionFactory</classname> the session is
|
||||
returned from the default session pool maintained by the factory. Session in the session pool might go stale
|
||||
(session that were disconnected by the server due to inactivity) so <classname>SftpSessionFactory</classname>
|
||||
will perform validation to make sure that it never returns stale session to the adapter. If stale session was encountered
|
||||
it will be removed form the pool and the new one will be created.
|
||||
<note>
|
||||
If you experience connectivity problems and would like to trace session creation as well as see which session are
|
||||
polled you may enable it by setting logger to TRACE level (e.g., log4j.category.org.springframework.integration.file=TRACE)
|
||||
</note>
|
||||
</para>
|
||||
|
||||
Now all you need to do is inject this <emphasis>SFTP Session Factory</emphasis> into your adapters.
|
||||
</para>
|
||||
|
||||
@@ -6,4 +6,4 @@ log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %t %c{2}:%L - %m
|
||||
|
||||
log4j.category.org.springframework=WARN
|
||||
log4j.category.org.springframework.integration=DEBUG
|
||||
log4j.category.org.springframework.integration.ftp=DEBUG
|
||||
log4j.category.org.springframework.integration.file=DEBUG
|
||||
|
||||
Reference in New Issue
Block a user