Configuration Management | Community
Skip to main content
October 16, 2015
Solved

Configuration Management

  • October 16, 2015
  • 2 replies
  • 1049 views

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 
 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Hi,

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

kind regards,
Jörg

2 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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/

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

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

kind regards,
Jörg