commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: Apache common pooling 2
Date Tue, 03 Feb 2015 21:21:49 GMT
Perhaps you'd be more interested in a "cache" rather than a "pool"?

On Tue, Feb 3, 2015 at 3:20 PM, Syed Mudassir <syed.mudassir@gaiatv.in>
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?
> --
>

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message