One simple solution with no code changes: Use a pool with a max of one connection and a long timeout. This way only one thread can get a connection.
> -----Original Message----- > From: Antony Paul [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 12:51 PM > To: Tomcat Users List > Subject: [OT] Synchronising database access > > > 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 > synchronised block requires than an unsynchronised block. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]