diff --git a/docs/src/reference/docbook/ftp.xml b/docs/src/reference/docbook/ftp.xml index 0d4393d16b..1fdad2c989 100644 --- a/docs/src/reference/docbook/ftp.xml +++ b/docs/src/reference/docbook/ftp.xml @@ -76,18 +76,17 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/ftp ]]> - - Every time an adapter requests a session object from the DefaultFtpClientFactory or DefaultFtpsClientFactory the session is - returned from the default session pool maintained by these factories. Session in the session pool might go stale - (session that were disconnected by the server due to inactivity) so DefaultFtpClientFactory or DefaultFtpsClientFactory - will perform validation to make sure that they never return stale session to the adapter. If stale session was encountered - it will be removed form the pool and the new one will be created. + Every time an adapter requests a session object from its SessionFactory the session is + returned from a session pool maintained by a caching wrapper around the factory. A Session in the session pool might go stale + (if it has been disconnected by the server due to inactivity) so the SessionFactory + will perform validation to make sure that it never returns a stale session to the adapter. If a stale session was encountered, + it will be removed from the pool, and a new one will be created. - 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) + If you experience connectivity problems and would like to trace Session creation as well as see which Sessions are + polled you may enable it by setting the logger to TRACE level (e.g., log4j.category.org.springframework.integration.file=TRACE) - + Now all you need to do is inject these session factories into your adapters. Obviously the protocol (FTP or FTPS) that an adapter will diff --git a/docs/src/reference/docbook/sftp.xml b/docs/src/reference/docbook/sftp.xml index f021dc1585..5e7b1e0eb9 100644 --- a/docs/src/reference/docbook/sftp.xml +++ b/docs/src/reference/docbook/sftp.xml @@ -35,7 +35,7 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/sftp the SFTP Session Factory via a regular bean definition: Below is a basic configuration: - + @@ -44,14 +44,14 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/sftp ]]> - Every time an adapter requests a session object from the SftpSessionFactory 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 SftpSessionFactory - 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. + Every time an adapter requests a session object from its SessionFactory the session is + returned from a session pool maintained by a caching wrapper around the factory. A Session in the session pool might go stale + (if it has been disconnected by the server due to inactivity) so the SessionFactory + will perform validation to make sure that it never returns a stale session to the adapter. If a stale session was encountered, + it will be removed from the pool, and a new one will be created. - 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) + If you experience connectivity problems and would like to trace Session creation as well as see which Sessions are + polled you may enable it by setting the logger to TRACE level (e.g., log4j.category.org.springframework.integration.file=TRACE)