[
https://issues.apache.org/jira/browse/SOLR-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670643#action_12670643
]
Shalin Shekhar Mangar commented on SOLR-336:
--------------------------------------------
Why should the dataDir be a special thing? Why not support JNDI values for all
properties implicitly? We currently support two kinds of properties, the ones
defined in solr.xml and the environment variables. As a logical extension, we
can add JNDI variables too so that we don't need to duplicate JNDI properties
again in solr.xml.
I guess the property syntax will need to be changed a bit because ':' is used
for default values. We can either escape the ':' in JNDI name or we can make
the DOMUtil.substituteProperty method aware of this change. If we go this way,
I think the only piece of code which would need to be changed in
DOMUtil.substituteProperty method.
> Allow setting solr.data.dir with JNDI
> -------------------------------------
>
> Key: SOLR-336
> URL: https://issues.apache.org/jira/browse/SOLR-336
> Project: Solr
> Issue Type: Improvement
> Components: update
> Reporter: Stu Hood
> Priority: Minor
> Attachments: jndi-data-dir.patch
>
>
> I would like to be able set the solr.data.dir with JNDI, as I can for the
> solr.home property. Currently the data directory is only looked up in the
> ${solr.home}/conf/solrconfig.xml file, or as a parameter passed into the
> SolrCore(String, IndexSchema) constructor.
> This allows more options for setting the data directory, such as from within
> a Servlet container's Context fragment.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.