JDBC Driver Unloading should be configurable
--------------------------------------------
Key: JRUBY-5528
URL: http://jira.codehaus.org/browse/JRUBY-5528
Project: JRuby
Issue Type: Bug
Components: Embedding
Affects Versions: JRuby 1.6RC2
Reporter: Slawomir Chodnicki
Hi guys,
The fix for bug 4226 now causes all JDBC drivers to be unloaded on tearDown,
which is not optimal for all embedding situations. I think there's a lot of
situations where it's quite reasonable to *not* unregister all the drivers. I
am embedding ruby in a data processing tool for example, and executing a short
ruby script that uses JDBC should certainly *not* unload all JDBC drivers when
it's done and disposed. The rest of the program relies on the drivers being
there. With jruby forcibly unloading the drivers I can't touch any JDBC
functionality in the embedded scripts.
I'd like to request making the teardown behavior configurable, or the unloader
replaceable with a stub. A simple setter for the unloader on the
JRubyClassLoader would be fine, too.
Cheers and Thanks
Slawo
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email