A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
connection thread safe
Joined: Feb 27, 2002
Aug 03, 2003 04:27:00
connection thread safe ?
When a connection is shared by many threads on problem I see is the transaction isolation level.
Any other problems ? Would like to hear them.
Joined: Mar 06, 2001
Aug 03, 2003 12:42:00
the Connection class is not thread save.
Don't use it. How would you maintain
transactions over multiple threads with only one Connection?
Makes your code only more complicated.
[ August 03, 2003: Message edited by: Taudo Wenzel ]
It is sorta covered in the
JavaRanch Style Guide
subject: connection thread safe
question from the jweb+
DSRA9110E Connection is closed
vetor thread safe?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015