Expand my Community achievements bar.

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

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Creating the component xml - Run modes

Avatar

Level 4

I've created an OSGI component to be used in my application. I also want to control the values in the component using run modes.

I would like to know how to create the xml representation of the OSGI component that is placed in the JCR inside specific run mode folders.

As soon as the component is activated there is a file created under /apps/system/config but this is not an xml representation.

Where can I get the xml version of the component or is there any way to create the xml representation of the component?

Appreciate all leads.

1 Accepted Solution

Avatar

Correct answer by
Employee

I'm not sure I follow the question, the link below describes how to enable components for specific runmodes .e.g publish

http://www.computepatterns.com/43/osgi-component-in-aem-that-is-active-only-in-specific-run-mode-say...

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

I'm not sure I follow the question, the link below describes how to enable components for specific runmodes .e.g publish

http://www.computepatterns.com/43/osgi-component-in-aem-that-is-active-only-in-specific-run-mode-say...