Hi folks,

I'm trying to run the CMS on JBoss and now I'm having the requirement to keep 
properties outside of the jar file. Is it possible to read in the domain name 
in de sampleDomain.xml from a property file.

I already tried adding a PropertyPlaceholderConfigurer to sampleDomains.xml but 
it doesn't seem to work.

I've added:

        <bean id="placeholderConfig" 
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
                <property name="locations">
                        <list>
                                <value>
                                     classpath:props/cms.properties
                                </value>
                        </list>
                </property>
        </bean>

And changed the domain to ${cms.domain}

And my property file is in <server-instance>conf/props/cms.properties and 
contains:
cms.domain=cms-ontw-cocoon

Can someone help me?

With regards,

Nick Stolwijk
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to