List of all osgi configs having same Factory PID?

Avatar

Avatar

shubhamg9400285

Avatar

shubhamg9400285

shubhamg9400285

07-05-2019

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839
Arun_Patidar
MVP

07-05-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

fid.PNG

Answers (1)

Answers (1)

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

07-05-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.