Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unable to fetch OSGi Configuration Values


Level 5


I have created an event handler and used OSGi configuration as below.

@Component(immediate = true,
  property= {
  EventConstants.EVENT_TOPIC + "=" + ReplicationAction.EVENT_TOPIC
  @Designate(ocd = PagePublishEventHandler.Configuration.class)
  public class PagePublishEventHandler implements EventHandler {

  private static String rootPage = "";
  public void handleEvent(final Event event) {


  public void activate(Configuration config) {
  String rootPage = config.getPath();"********ConfigurationPropertyInterface**********activate**********************");"********rootPage********",rootPage); 

  @ObjectClassDefinition(name="AEM Plugin OSGi Configuration")
  public @interface Configuration {
  name = "Root Page For Web Site",
  description = "Configurable paths for root page",
  type = AttributeType.STRING
  String getPath() default "/content";


Any Idea why I am not able to get path. AEM version 6.5


0 Replies