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
BedrockMission!

Learn more

View all

Sign in to view all badges

How to unbind the OSGI configuration dynamically?

ashwiniv5325199
Level 2
Level 2

Hi All,

        How to unbind the OSGI Configuration dynamically from the servlet? Just for an example pls find the screenshot

1632064_pastedImage_0.png

Above screenshot contains "Unbind" option at the right bottom. How to unbind it dynamically instead of manunally click on "unbind" button.

Thanks & Regards,

Ashwini

2 Replies
yanirac19051392
Employee
Employee

You should review Felix SCR Annotations [1] for the unbind.  Also this example might help you [2]

[1] Apache Felix - SCR Annotations

[2] OSGI in AEM6.3 – AEM PEDIA

Jörg_Hoh
Employee
Employee

Why do you need to unbind configuration programmatically? It should never be required on a regular basis. I used it a few times in troubleshooting, but it's definitely not a function for regular use.