13 messages in com.mysql.lists.javaRe: com.jdbc.mysql.Driver deadlock (C...
FromSent OnAttachments
Dane Foster16 Apr 2003 11:11 
Slava Imeshev16 Apr 2003 11:26 
Jeff Mathis16 Apr 2003 11:36 
Morten Norby Larsen16 Apr 2003 11:41 
Mark Matthews16 Apr 2003 11:41 
Dane Foster16 Apr 2003 11:42 
Mark Matthews16 Apr 2003 11:57 
Slava Imeshev16 Apr 2003 12:08 
Jeff Mathis16 Apr 2003 12:12 
Morten Norby Larsen16 Apr 2003 12:30 
Tim Endres16 Apr 2003 12:58 
Jeff Mathis16 Apr 2003 13:56 
Mark Matthews16 Apr 2003 14:28 
Subject:Re: com.jdbc.mysql.Driver deadlock (Connector/J v 3.0.7.stable)
From:Mark Matthews (ma@mysql.com)
Date:04/16/2003 11:41:32 AM
List:com.mysql.lists.java

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Jeff Mathis wrote: | Interesting. I've noticed on occasion that I'll get a deadlock when I | create multiple connections within the same JVM using the | DriverManager.getConnection(String, String, String) method. Are these | deadlocks then related to the issue you bring up?

DriverManager.getConnection() is class-synchronized which leads to many types of deadlock problems. This is the reason you will see that most connection pool code avoids DriverManager and either uses DataSources, or uses Driver.connect().

-Mark

- -- For technical support contracts, visit https://order.mysql.com/?ref=mmma

iD8DBQE+naPytvXNTca6JD8RAovYAKC662iLVws2L/HPfnC3Mdv4Z0apeACfZ8Aw 0NpVWQLd1ljQ31VV3fQTbJo= =XcBT -----END PGP SIGNATURE-----