Where to put config files - the missing piece.
This post shows how to create an OSGi service in Java (which we assume is the only way) which creates and uses some configuration parameters which can be edited in the configMgr
However, this is useless without the ability to distribute pre-set parameters for the various run modes as part of our code deployment.
AEM documentation seems to be lacking info on this subject, it only has info on configuration on the actual running servers themselves and talks about config under /apps/.
If we look at the wknd project, it seems to be putting config files in:
ui.config/src/main/content/jcr_root/apps/wknd/osgiconfig/*
These files have a strange naming convention, e.g. e.g. com.adobe.aem.graphql.sites.adapters.SlingSchemaServlet~wknd-graphql.cfg.json
Are these files, their location, naming and content structure documented?
We have created a new osgi service (just to read config params) called say MyService with the following path: /aem-guides-wknd.core/src/main/java/com/adobe/aem/guides/wknd/core/services/MyService.java
What should the corresponding config file be called, and where should it be located? How do we link our services config params to the config file?
=== UPDATE ===
@asutosh_jena_ kindly replied that I should put xml files under:
/apps/wknd/runmodes/config.dev
This sums up the discrepancy and why I am posting here: things like /apps/wknd/runmodes does not exist, nor anything like it, in the source code for wknd.
This is the wknd source code file structure:
