Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

Configuration Management

Avatar

Level 1

Hi All,

I am trying to create  a configuration framework for my project.The Configuration are stored in node . Project consist of multiple environment example  Load, Test etc.. I require certain configuration to be read on activation of Bundle depending on the environment and not by instance its running ,I can get environment in Sling Servlet but Activator or Service level I am not sure how to achieve it 
 

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Employee Advisor

Hi,

assign individual runmodes to the environments ("staging","integration", "production") and create a runmode-based configuration for the services.

kind regards,
Jörg

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten

Avatar

Level 10

You can add the configuration folder like config.test.author and put all your configuration under this folder.

start the instance with author, test

In the Activator or service, you can read the configuration properites using Properties API

Refer http://adobeaemclub.com/osgi-configuration-management-aem/

Avatar

Korrekte Antwort von
Employee Advisor

Hi,

assign individual runmodes to the environments ("staging","integration", "production") and create a runmode-based configuration for the services.

kind regards,
Jörg