Myrna van Lunteren wrote:

>Hi,
>
>When I run the test jdbcapi/getCurConnJdbc20 with db2jcc.jar (and
>db2jcc_license_c.jar) in my classpath, like so:
>  java -Duseprocess=false
>org.apache.derbyTesting.functionTests.harness.RunTestjdbcapi/getCurConnJdbc20.sql
>I get the following diff:
>-------------------
>14a15,20
>  
>
>>ERROR 38000: The exception 'java.lang.ExceptionInInitializerError' was
>>    
>>
>(...)util.Jdbc20Test.newJdbc20Method would attempt to load the jcc driver?
>I'm not running networkserver here - just embedded...
>Does this maybe mean that
>driverManager.getConnection("jdbc:default:connection")
>goes through all available drivers in the classpath?
>
>  
>
Yes,  I think you are right, that it goes through all the registered
drivers. The drivers are registered automatically when the driver is
loaded.  What might happen with useprocess=false is that the harness has
loaded JCC to get version information etc, then 
driverManager.getConnection("jdbc:default:connection") considers it for
selection.

Kathey






Reply via email to