Just compare the 2 borrowObject methods.
GenericObjectPool:
    public Object borrowObject() throws Exception {

GenericKeyedObjectPool:
    public synchronized Object borrowObject(Object key) throws Exception {

GenericKeyedObjectPool has the disadvantage of being completely synchronized.
Lots of room for improvements.

PS: Because of the synchronization in PoolableConnectionFactory you won't see a lot of difference between BasicDataSource and the other ones but once the synchonization on validate is removed you will see the difference.

-- Dirk

Todd Carmichael wrote:

Has your experience and feedback from others been that GenericObjectPool
'scales' better than GenericKeyedObjectPool?

Anyone else with perspective on this please chime in.

Thanks.

ToddC




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to