On Thu, 20 Mar 2003, Sudhir Kumar wrote:

> Date: Thu, 20 Mar 2003 10:10:36 +0530
> From: Sudhir Kumar <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Concurrent users accesing JSP application
>
> hi Tim,
>       Thanks for the reply..
>       I am using JDBC-ODBC bridge,

You can stop wondering now.  This driver is *not* designed to be used in a
multi-threaded environment like a servlet container, so you are bound to
have thread safety problems.

> the JSP's are thread safe and the block of
> code accessing the database are Syncronized. Will that be sufficient to say
> that my code is thread safe ? or will i have to do anything extra ?
>

Using a different JDBC driver is the most important issue.  Even if you
very carefully ensure that only one database operation at a time occurs,
your application's response time will make it totally unusable for any
reasonable number of concurrent users.

> thanks
> Sudhir
>

Craig McClanahan

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

Reply via email to