Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection thread safe

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Taudo Wenzel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic