[ 
https://issues.apache.org/jira/browse/SOLR-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680376#action_12680376
 ] 

Noble Paul commented on SOLR-1058:
----------------------------------

how about enhancing the JdbcDataSource to lookup a javax.sql.DataSource from 
jndi also

example
{code:xml}

<dataSource name="j" jndiName="java:comp/env/jdbc/myDb" user="" password=""/>
{code}

This will get a javax.sql.DataSource object registered in your app server using 
a given user name, password (optional)

> JNDI DataImporterHandler
> ------------------------
>
>                 Key: SOLR-1058
>                 URL: https://issues.apache.org/jira/browse/SOLR-1058
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>         Environment: Java Servlet Contaner, for example JBoss, or Tomcat
>            Reporter: Jason Shepherd
>
> Please make the Callable<Connection> factory field of the JdbcDataSource a 
> protected field.
> Follow the discussion on the thread linked below, to enable the use of JNDI 
> lookup for a JdbcDataSource this field will need to be set by a subclass 
> (JndiJdbcDataSource).
> http://www.nabble.com/DataImportHandler-that-uses-JNDI-lookup-tt22408996.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to