Yes, GenericObjectPool is thread safe, you don't have to synchronise.

You might want to make sure your PoolableObjectFactory is thread safe.
Concurrent pool.borrowObject() method calls are able to call the PoolableObjectFactory methods at the same time.


Cheers
Dirk

Ian Petzer wrote:
Hello All

I trawled through the mail-archives about this issue but could not come up
with a conclusive answer.

My question is:
Is access to the GenericObjectPool thread safe? Can I have multiple objects
calling borrowObject() and returnObject() at the same time or do I need to
synchronise access to it?

Thanks
Ian



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



Reply via email to