How to Retrieve/Update the configuration details through Configuration Admin Service - Adobe Experience Manager(AEM)
This post will explain how to Retrieve/Update the configuration details through Configuration Admin Service in Adobe Experience Manager(AEM)Java API
//Add the reference@Reference
org.osgi.service.cm.ConfigurationAdmin configAdmin;
//Reterive/Update the configration
org.osgi.service.cm.Configuration config = configAdmin.getConfiguration("com.day.cq.mailer.DefaultMailService");
Dictionary d = config.getProperties();
String fromAddress=(String)d.get("from.address");
d.put("from.address", "[email protected]");
config.update(d);