title: spring integration CachingSessionFactory session pool clarification
body: <p>We are using spring integration CachingSessionFactory to cache sftp sessions. All works fine but had one question about how does those sessions are being handles.</p>
  
  <p>Say for eg, if my pool size is 10 and out of those 10 pool if one of the session is stale(may be disconnected to actual sftp server), does that stale session being thrown and replaced by another good one before being used.</p>