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.

Updated properties values on sling:osgiconfig are not considering

Avatar

Level 9

Hi All,

I have scheduler and the required input is taken from OSGI configuration.Based on requirement i have deleted existing values and added new values.

When running the scheduler, it's still considering old values in OSGI configuration but not new ones.

Is one has any idea,how to resolve the issue?

Thanks,

Kishore

6 Replies

Avatar

Level 10

Two possibility:-

1. You are reading properties in activate method of service instead modified -

2. Someone has modified properties in felix which would have stored under /apps/system. Delete it if it exists

Avatar

Level 9

My configurations are not storing in /apps/system instead these are part of run modes.

Avatar

Administrator

If you have created a sling:osgiConfig node, you should have a service or component, which is using this configuration setting. Then this component/service should render the value.

Reference 1:- How to create a sling:OsgiConfig property and access it in component Jsp ?

Reference 2:- Reading OSGi Configuration Values for Adobe Experience Manager 6.3

-Kautuk



Kautuk Sahni

Avatar

Level 9

I have all these basic setting mentioned by your reply.

Avatar

Level 10

Share the code of service where you reading those properties

Avatar

Level 9

There is an issue with in custom code and we fixed it.

Thanks all for your support!!