Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to unbind the OSGI configuration dynamically?

Avatar

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

Avatar

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

Avatar

Employee Advisor

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.