Perhaps you'd be more interested in a "cache" rather than a "pool"?
On Tue, Feb 3, 2015 at 3:20 PM, Syed Mudassir <[email protected]> wrote: > Guys, > I have a question. > I am using GenericKeyedObjectPool for pooling SFTP sessions. Suppose I > have one session in the pool. > Can this session be shared among multiple threads at the same time? > I mean suppose if there are four threads running parallely, can this > session be used at the same time by all the four threads simultaneously? > If it is possible, any sample code to get it done? > -- >
