aspose file tools*
The moose likes JDBC and the fly likes connection thread safe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connection thread safe" Watch "connection thread safe" New topic
Author

connection thread safe

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Is JDBC 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.
:roll:


Groovy
Taudo Wenzel
Greenhorn

Joined: Mar 06, 2001
Posts: 8
Hi,
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.
Regards,
Taudo
[ August 03, 2003: Message edited by: Taudo Wenzel ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection thread safe