Updated properties values on sling:osgiconfig are not considering

Avatar

Avatar

GK-AEM

Avatar

GK-AEM

GK-AEM

01-02-2018

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

Replies

Avatar

Avatar

edubey

Avatar

edubey

edubey

01-02-2018

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

Avatar

GK-AEM

Avatar

GK-AEM

GK-AEM

01-02-2018

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

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

02-02-2018

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

Avatar

Avatar

GK-AEM

Avatar

GK-AEM

GK-AEM

02-02-2018

I have all these basic setting mentioned by your reply.

Avatar

Avatar

edubey

Avatar

edubey

edubey

02-02-2018

Share the code of service where you reading those properties

Avatar

Avatar

GK-AEM

Avatar

GK-AEM

GK-AEM

05-02-2018

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

Thanks all for your support!!