April 14, 2020
Estimated Post Reading Time ~

Reading AEM OSGi Configuration Values

You can define OSGi configuration values by using CRXDE lite and dynamically read these values from within an OSGi service. By defining configuration values, you can define values used by an OSGi service and use these values while the service is running. Unlike hard-coding values in an AEM OSGi service, defining values in CRXDE lite lets you modify configuration values without re-compiling and re-deploying the OSGi bundle.


As shown in the previous illustration, you can define OSGi configuration values in CRXDE lite. To define configuration values, you define a node of type sling:OsgiConfig. Then you define properties which are the configuration values.


This development article guides you through creating an OSGi bundle that reads OSGi configuration values that are defined in CRXDE Lite.

AEM 6.1/2
To read this development article, click:
https://helpx.adobe.com/experience-manager/using/osgi_config.html.

AEM 6.3


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.