Yes, it would appear so after doing some brief testing. I was using the nightly build btw.
Thanks Craig.


Craig R. McClanahan wrote:

On Thu, 18 Sep 2003, Kwok Peng Tuck wrote:



Date: Thu, 18 Sep 2003 11:03:36 +0800
From: Kwok Peng Tuck <[EMAIL PROTECTED]>
Reply-To: Jakarta Commons Users List <[EMAIL PROTECTED]>
To: Jakarta Commons Users List <[EMAIL PROTECTED]>
Subject: [DBCP] Usage in standalone program

I'm using BasicDataSource to provide a pool of db connections,
I just want to know if the getConnection() method of  the
BasicDataSource is thread safe ?  Thanks.




Short answer ... it better be, or this class isn't of much use :-).


Longer answer ... the thread safety of this method depends on the thread
safety of the underlying commons-pool methods used to construct the
underlying object pool.  My examination of the code implies that there
shouldn't be any thread safety problems (and I have not encountered any
myself in practice), but that doesn't mean there might not be some.

Craig

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







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



Reply via email to