13 messages in com.mysql.lists.javaRe: com.jdbc.mysql.Driver deadlock (C...| From | Sent On | Attachments |
|---|---|---|
| Dane Foster | 16 Apr 2003 11:11 | |
| Slava Imeshev | 16 Apr 2003 11:26 | |
| Jeff Mathis | 16 Apr 2003 11:36 | |
| Morten Norby Larsen | 16 Apr 2003 11:41 | |
| Mark Matthews | 16 Apr 2003 11:41 | |
| Dane Foster | 16 Apr 2003 11:42 | |
| Mark Matthews | 16 Apr 2003 11:57 | |
| Slava Imeshev | 16 Apr 2003 12:08 | |
| Jeff Mathis | 16 Apr 2003 12:12 | |
| Morten Norby Larsen | 16 Apr 2003 12:30 | |
| Tim Endres | 16 Apr 2003 12:58 | |
| Jeff Mathis | 16 Apr 2003 13:56 | |
| Mark Matthews | 16 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
~ __ ___ ___ ____ __ ~ / |/ /_ __/ __/ __ \/ / Mark Matthews <ma...@mysql.com> ~ / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer - JDBC/Java ~ /_/ /_/\_, /___/\___\_\___/ Flossmoor (Chicago), IL USA ~ <___/ www.mysql.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+naPytvXNTca6JD8RAovYAKC662iLVws2L/HPfnC3Mdv4Z0apeACfZ8Aw 0NpVWQLd1ljQ31VV3fQTbJo= =XcBT -----END PGP SIGNATURE-----




