Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Re: thread safe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 3684 of 3800
Post > Topic >>

Re: thread safe JDBC code

by =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@[EMAIL PROTECTED] > Mar 23, 2008 at 08:46 PM

Steve wrote:
> How to guarantee the JDBC code is thread safe? Should we put
> synchronize block in JDBC methods that performs update/delete
> operations?

The exact same thread safe rules applies to code using JDBC as
any other code.

If you are worried about the database, then don't think
synchronized - think transactions and transaction isolation
level.

Arne
 




 3 Posts in Topic:
thread safe JDBC code
Steve <javacc2@[EMAIL   2008-03-23 16:40:53 
Re: thread safe JDBC code
=?ISO-8859-1?Q?Arne_Vajh=  2008-03-23 20:46:43 
Re: thread safe JDBC code
"Arved Sandstrom&quo  2008-03-25 17:56:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:50:49 CDT 2008.