From fab6b6d54cc1f3a44ab85091c6a73394aea8d06d Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Fri, 10 Dec 2010 13:38:25 -0500 Subject: [PATCH] INT-1670 updated SFTP/FTP documentation to reflect recent changes --- docs/src/reference/docbook/ftp.xml | 2 +- docs/src/reference/docbook/sftp.xml | 13 ++++++++++++- .../src/test/resources/log4j.properties | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/src/reference/docbook/ftp.xml b/docs/src/reference/docbook/ftp.xml index b70ead9acb..f4a95015ca 100644 --- a/docs/src/reference/docbook/ftp.xml +++ b/docs/src/reference/docbook/ftp.xml @@ -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. 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) diff --git a/docs/src/reference/docbook/sftp.xml b/docs/src/reference/docbook/sftp.xml index 804c9a6de2..f021dc1585 100644 --- a/docs/src/reference/docbook/sftp.xml +++ b/docs/src/reference/docbook/sftp.xml @@ -42,7 +42,18 @@ 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. + + 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) + + Now all you need to do is inject this SFTP Session Factory into your adapters. diff --git a/spring-integration-ftp/src/test/resources/log4j.properties b/spring-integration-ftp/src/test/resources/log4j.properties index 6f97a128ed..f336d51bbf 100644 --- a/spring-integration-ftp/src/test/resources/log4j.properties +++ b/spring-integration-ftp/src/test/resources/log4j.properties @@ -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