List of all osgi configs having same Factory PID? | Community
Skip to main content
shubhamg9400285
Level 2
May 7, 2019
Solved

List of all osgi configs having same Factory PID?

  • May 7, 2019
  • 2 replies
  • 2484 views

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?

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 arunpatidar

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

2 replies

Adobe Employee
May 7, 2019

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.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
May 7, 2019

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

Arun Patidar