Class.forName hang initializing oracle.jdbc.OracleDriver
From: Brett Hunsaker (brett*dash*hunsaker*at*automation*dash*software*dot*com)
Date: 02/08/05
- Next message: Joe Weinstein: "Re: Class.forName hang initializing oracle.jdbc.OracleDriver"
- Previous message: Ryan Stewart: "Re: Comparing database dates: SELECT FROM WHERE Date(today) < MYDATECOL ?"
- Next in thread: Joe Weinstein: "Re: Class.forName hang initializing oracle.jdbc.OracleDriver"
- Reply: Joe Weinstein: "Re: Class.forName hang initializing oracle.jdbc.OracleDriver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 7 Feb 2005 17:48:04 -0800
I have a multi-threaded application that uses both MSDE and Oracle. If I
begin processing MSDE transactions and then later call Class.forname(
"oracle.jdbc.OracleDriver" ), this call will hang. Why?
According to the docs, Class.forName initializes the class, so I'm guessing
that the jdbc registration process has a lock of some sort. Do I need to
initialize all drivers before using any of them?
Oracle 9i thin client (ojdbc14.jar)
JVM 1.4.2_03
Windows 2000 SP4
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
- Next message: Joe Weinstein: "Re: Class.forName hang initializing oracle.jdbc.OracleDriver"
- Previous message: Ryan Stewart: "Re: Comparing database dates: SELECT FROM WHERE Date(today) < MYDATECOL ?"
- Next in thread: Joe Weinstein: "Re: Class.forName hang initializing oracle.jdbc.OracleDriver"
- Reply: Joe Weinstein: "Re: Class.forName hang initializing oracle.jdbc.OracleDriver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]