You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Shalin Shekhar Mangar <sh...@gmail.com> on 2009/03/19 19:07:10 UTC

Re: DIH - read datasource param values from property file or configure JNDI datasource

On Thu, Mar 19, 2009 at 9:39 PM, Shyamsunder Reddy <sj...@yahoo.com> wrote:

>
> I am looking for a implementation of DIH feature: It also takes in a
> properties file for the data source configuration (
> http://issues.apache.org/jira/browse/SOLR-469)
>
> I want to externalize the data source parameters like driver, url, user and
> password to property file outside the solr. My aim to hide the parameters
> from developer code in Production environment. So that admin can enter these
> values.
>
> Or else can DIH read JNDI data source from server environment.
>
> Let me know the best practice to follow in production environment?
>

There's an issue open for JNDI support with a patch. Look at
https://issues.apache.org/jira/browse/SOLR-1058

Fergus's suggestion also applies.
-- 
Regards,
Shalin Shekhar Mangar.