I'm trying to create a simple configuration for Amdatu's MongoDB component. When I create a file named org.amdatu.mongo-kairos.cfg
with following line inside dbName=kairos
and put it into the deploy folder - everything works OK. However, when I'm trying to use config
tag in features.xml
nothing happens.
Part of my feature file, which uses configuration tag:
<feature name="persistency" version="0.0.1-SNAPSHOT" description="MongoDB Persistency">
//(...)
<config name="org.amdatu.mongo-kairos">
dbName=kairos
</config>
</feature>
As mentioned on the users mailing-list it's a known issue but can be worked around with using a configfile instead. With defining multiple configuration files the management service factory can also be used with a feature definition:
Moreover, using config files along with maven allows to version configurations along with the application: