[ 
https://issues.apache.org/jira/browse/DERBY-5043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001028#comment-13001028
 ] 

Kim Haase commented on DERBY-5043:
----------------------------------

I have a few questions.

1) The description at the top of DERBY-2905 says that after shutdown, the 
still-registered driver "does not support any future loading of connections," 
but the reply to Rick just now says that "When deregister=false, user can just 
obtain a new connection without issue Class.forName()." I thought the point of 
making true the default was that after a shutdown the driver could no longer be 
used, so it really needed to be deregistered. I admit I did not read the entire 
history of DERBY-2905, where this might be clarified.

2) Is this attribute valid only when using JDBC 4.0 or 4.1? (Driver autoloading 
is present with JDBC 4.0 but not with 3.0.)

3) Does this attribute apply to the embedded driver only? Does it have any 
meaning if you are shutting down the network driver?

> Document the new url attribute deregister to keep the AutoloadedDriver 
> registers in DriverManager
> -------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5043
>                 URL: https://issues.apache.org/jira/browse/DERBY-5043
>             Project: Derby
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 10.7.1.1
>            Reporter: Lily Wei
>            Assignee: Kim Haase
>              Labels: derby_triage10_8
>             Fix For: 10.8.0.0
>
>         Attachments: Repro2905.java
>
>
> With DERBY-2905, we have a new connection url attribute - deregister. After a 
> shutdown of the embedded driver, the AutoloadedDriver is unregistered from 
> the DriverManager. Users who wish to keep the AutoloadedDriver can set the 
> deregister attribute on the connection url to false. It is only valid with 
> shutdown=true. And, the default behavior with shutdown=true is 
> deregister=true. 
> For example: 
> 'shutdown=true;deregister=true" (It is okay not to specify deregister=true)
> 'shutdown=true;deregister=false"

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to