Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 91035 invoked from network); 21 Nov 2003 16:26:22 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Nov 2003 16:26:22 -0000 Received: (qmail 9541 invoked by uid 500); 21 Nov 2003 16:25:56 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 9396 invoked by uid 500); 21 Nov 2003 16:25:55 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 9383 invoked from network); 21 Nov 2003 16:25:55 -0000 Received: from unknown (HELO server01.hh.uptime.de) (212.202.153.225) by daedalus.apache.org with SMTP; 21 Nov 2003 16:25:55 -0000 Subject: RE: [OT] Synchronising database access MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 21 Nov 2003 17:25:56 +0100 Content-Class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [OT] Synchronising database access Thread-Index: AcOwJMROcAJOIR2XR9OgSrL5lEEauwAJuWfQ From: "Ralph Einfeldt" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N One simple solution with no code changes: Use a pool with a max of one connection and a=20 long timeout. This way only one thread can get a connection. > -----Original Message----- > From: Antony Paul [mailto:antonypaul24@hotmail.com] > Sent: Friday, November 21, 2003 12:51 PM > To: Tomcat Users List > Subject: [OT] Synchronising database access >=20 >=20 > I want to synchronise all database access. T > How to do it. Do I have to synchronise on Connection or on this or = implement > SingleThreadModel. I also want to know how much extra time a=20 > synchronised block requires than an unsynchronised block. >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org