[
https://issues.apache.org/jira/browse/SOLR-10105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15993260#comment-15993260
]
James Dyer commented on SOLR-10105:
-----------------------------------
Yes I agree having the streaming expressions work in-core or standalone opens
up all sorts of nice possibilities. And it doesn't seem you can grab the
in-core ResourceLoader via reflection and load the class that way, because
javax.sql.DriverManager enforces that the driver be from the same classloader
as that of the calling class. So my prior suggestion won't work.
> JDBCStream should be able to load driver from runtime lib
> ---------------------------------------------------------
>
> Key: SOLR-10105
> URL: https://issues.apache.org/jira/browse/SOLR-10105
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Parallel SQL
> Reporter: Noble Paul
> Assignee: Kevin Risden
> Priority: Minor
> Attachments: SOLR-10105.patch
>
>
> Currently the JDBCStream uses Class.forName() to load the driver class. This
> should be improved to try to use the classloader from runtimeLib and the blob
> store API like SOLR-10087. It may be possible to do something like
> Class.forName(driverClassName, true, core.getMemClassLoader()) just need to
> figure out how to get a reference to the core.
> The relevant code is here:
> https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/JDBCStream.java#L180
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]