lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Shepherd (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1058) JNDI DataImporterHandler
Date Thu, 02 Apr 2009 23:17:13 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Shepherd updated SOLR-1058:
---------------------------------

    Attachment: SOLR-1058.patch

Changed 
from :

@@ -111,7 +113,9 @@
         throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Could not load driver:
" + driver, e);
       }
     } else {
-      throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Driver must be specified");
+      if(jndiName != null){
+        throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Driver must be specified");
+      }
     }
 
     String s = initProps.getProperty("maxRows");



to:

@@ -111,7 +113,9 @@
         throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Could not load driver:
" + driver, e);
       }
     } else {
-      throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Driver must be specified");
+      if(jndiName == null){
+        throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Driver must be specified");
+      }
     }
 
     String s = initProps.getProperty("maxRows");

> 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
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 1.4
>
>         Attachments: SOLR-1058.patch, SOLR-1058.patch, SOLR-1058.patch
>
>
> 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.


Mime
View raw message