[ https://issues.apache.org/jira/browse/SOLR-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524580 ]
Hoss Man commented on SOLR-336: ------------------------------- I'm opposed to the concept behind this patch for the same reasons i was opposed to adding a specific system property for the data dir... http://www.nabble.com/Re%3A-finer-granularity-of-configuration-p8894861.html perhaps instead of adding piece meal JNDI names for various things normally specified in the solrconfig.xml, we should take advantage of the existing code that supports using system properties as variables in the solrconfig.xml and write something that will generically convert any comp/env/solr/* JNDI pairs found into solr.* system properties before parsing the config? that way people can define any JNDI name they want (as long as it starts with solr) and then refer to those names in the solrconfig.xml just like they can with system properties right now. I don't know much about JNDI to know how feasible it is to get a list of all names matching a prefix, but i'm assuming it's possible (even if it's inefficient, we only need to do it once on startup) > 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.