olegz/spring-integration — comment on commit ec0a709d2b94f41bdd33fe3ace7e0039b09e2f76
File: spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java line 94
By markfisher:

Deprecating 'cache-sessions' sounds like the right idea. Then, the maxSessions properties could be set directly on the CachingSessionFactory bean.

The only thing we have to worry about with the deprecation is clearly documenting the fact that people will need to explicitly wrap their SessionFactory instance in a CachingSessionFactory *in order to get the same behavior they used to get by default*.