Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 63702 invoked from network); 7 Mar 2003 17:14:40 -0000 Received: from ext-ch1gw-1.online-age.net (216.34.191.35) by daedalus.apache.org with SMTP; 7 Mar 2003 17:14:40 -0000 Received: from int-ch1gw-2.online-age.net (int-ch1gw-2 [3.159.232.66]) by ext-ch1gw-1.online-age.net (8.12.3/8.9.1/990426-RLH) with ESMTP id h27HEe9r010343 for ; Fri, 7 Mar 2003 12:14:40 -0500 (EST) Received: from kans016cercge.erc.gecapital.com (localhost [127.0.0.1]) by int-ch1gw-2.online-age.net (8.12.3/8.12.3/990426-RLH) with ESMTP id h27HEYev019899 for ; Fri, 7 Mar 2003 12:14:35 -0500 (EST) Received: by ercmailhost.erc.gecapital.com with Internet Mail Service (5.5.2656.59) id ; Fri, 7 Mar 2003 11:14:33 -0600 Message-ID: From: Gaurav.Goyal@ercgroup.com To: commons-user@jakarta.apache.org Subject: RE: [Pool] Thread safety Date: Fri, 7 Mar 2003 11:14:32 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N refer to my post with subject "DBCP multithreading scenario" for this. -----Original Message----- From: Tauzell, Dave [mailto:Dave.Tauzell@RxHub.net] Sent: Friday, March 07, 2003 10:53 AM To: commons-user@jakarta.apache.org Subject: [Pool] Thread safety I saw this on the archives, but there wasn't a reply. Is it safe to have multiple threads borrowing and returning objects? Or should I always synchronize those calls. My gut feel is that since you can have a thread checking for idle connections that their must be some build in thread safety, but I'm not sure. -Dave