Dear Magnolians,

One of our customers wants to deploy the war including Magnolia on their
production servers by themselves. Of course that is no problem, we give them
the correct instructions. In the configuration files like
jackrabbit-mysql-search.xml userid and password are stored. They are not
allowed to give that info to us, so we cannot include that in the files in
WEB-INF/config.

A nice solution would be to have the config files (magnolia.properties,
jackrabbit-mysql-search.xml and log4j.xml) placed outside the webapp, and
have Magnolia read them from there. I have found no standard functionality
for that mechanism. Did I overlook that?

This is a workable solution, but not the cleanest. In web.xml I include
this:

  <context-param>
    <param-name>magnolia.initialization.file</param-name>
    <param-value>
      ../../../external_magnolia_config/${webapp}/magnolia.properties
      WEB-INF/config/${servername}/${webapp}/magnolia.properties, 
      WEB-INF/config/${servername}/magnolia.properties,
      WEB-INF/config/${webapp}/magnolia.properties, 
      WEB-INF/config/default/magnolia.properties,
      WEB-INF/config/magnolia.properties
    </param-value>
  </context-param>

In a Tomcat installation I place the folder "external_magnolia_config" at
the same level as the Tomcat installation directory. It works because the
root folder of the webapp is 3 levels deep in the Tomcat installation
(<tomcat-home>/webapps/ROOT).

Is there a better way to achieve this? Please advise.

Thanks in advance, best regards,
Bert Leunis
-- 
View this message in context: 
http://www.nabble.com/Can-Magnolia-read-its-config-files-at-an-external-location--tp21012249p21012249.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to