olegz/spring-integration — comment on commit 9e6f8c3bb45feda178264225ff2bd7d438de3dee
File:  line 0
By markfisher:

General comment: people might think they can invoked the setSessionCacheSize method on their CachingSessionFactory instance at runtime to change the max pool size, but that won't work currently. If the Semaphore could be recreated within that setter (and have permits acquired to match the prior state), then it would be a dynamic property. It would require synchronizing the block of code in that setter that does recreate and setup the new Semaphore.