Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

List of all osgi configs having same Factory PID?

Avatar

Level 3

I have a scenario where I have a made a custom OSGi factory configurations.

.

So now I want a list of all these configs made from above OSGi config.

Is there any way to do that?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Yes, you can do it with using ConfigurationAdmin's listConfigurations method , if you have permission to access those configs.

ConfigurationAdmin (Apache Felix Configuration Admin Service 1.2.4 API)

check below example, which gives all the logger configuration

aem63app-repo/GetFeaturesServlet.java at master · arunpatidar02/aem63app-repo · GitHub

fid.PNG



Arun Patidar

View solution in original post

2 Replies

Avatar

Employee Advisor

You need to parse the output of "http://<host>:<port>/system/console/status-Configurations.txt" which will provide you a text file of all the configuration.

Avatar

Correct answer by
Community Advisor

Yes, you can do it with using ConfigurationAdmin's listConfigurations method , if you have permission to access those configs.

ConfigurationAdmin (Apache Felix Configuration Admin Service 1.2.4 API)

check below example, which gives all the logger configuration

aem63app-repo/GetFeaturesServlet.java at master · arunpatidar02/aem63app-repo · GitHub

fid.PNG



Arun Patidar