db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: Question on DERBY-2905
Date Wed, 15 Aug 2007 21:40:41 GMT
Ramin Moazeni wrote:
> Hello,
> I have a question regarding DERBY-2905: Shutting down
> embedded Derby does not remove all code, the AutoloadDriver
> is left registered in the DriverManager.
> In this case, if the user sht down the DB, the Autoloaded
> driver is successfully un-registered from the DriverManager.
> Now, If we consider the following scenario that the
> user shuts down the DB and explicitly loads the
> Embedded driver, which one of these drivers will
> be loaded: 1) AutoloadedDriver or Driver40
> In case of 1.1, if the user explicitly loads the
> Embedded driver, Driver30 would be loaded.
> The reason for this question is that if Driver40
> is loaded, there will be some errors in suites.All
> that needs to get fixed as follows:
> java.lang.ClassCastException: org.apache.derby.jdbc.Driver40 cannot be
> cast to org.apache.derby.jdbc.AutoloadedDriver
> which can be fixed in EmbedDataSource.java.
> I just have to make sure what is the right Driver to load
> after DB shutdown if the user decides to explicitly load
> the Embedded driver?
Ramin, do you have a test case that shows the issue when the user 
reloads the driver.  As long as everything has been unregistered 
properly, I am having a hard time understanding how that case is 
different then if the AutoloadedDriver had never been loaded at all.


View raw message