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


How to set values in an osgi configuration through servlet


Level 4

I am using AEM as a Cloud Service. And in that I'm extending tools menu so that osgi configurations can be set through that. I want to set a specific configuration values through that and for that I will be using servlet. So, using servlet how can I set the already existing osgi configuration values ?

1 Accepted Solution


Correct answer by
Community Advisor
2 Replies


Community Advisor

You could refer and please focus on


In your servlet you need to inject ConfigurationAdmin service and by using 

Configuration getConfiguration(java.lang.String pid)

you will be able to read specific OSGi configuration , here pid represents that specific OSGi configuration. 


Correct answer by
Community Advisor