How to unbind the OSGI configuration dynamically?

Avatar

Avatar

ashwiniv5325199

Avatar

ashwiniv5325199

ashwiniv5325199

28-11-2018

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

16-07-2019

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.

Avatar

Avatar

yanirac19051392

Employee

Avatar

yanirac19051392

Employee

yanirac19051392
Employee

16-07-2019

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