OSGI configuration to configure endpoints | Community
Skip to main content
sherybedrock
Level 3
July 25, 2017
Solved

OSGI configuration to configure endpoints

  • July 25, 2017
  • 4 replies
  • 3196 views

Hi all,

i'm working on task to configure a endpoint OSGI service where the user can configure the URL. I have a basic idea how this should be done, but i'm wondering are there any best practice? If you have any example will be nice to see another aproach.

Regards

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by VeenaVikraman

I would really love to give you my viewpoints when working with OSGI configurations

In many projects I have taken over from other teams or vendors , one big issue I have always faced is the configs. When you are working with OSGI configs please make sure you handle them by creating config nodes. To ease my job of explaining everything I have dig out some blogs from internet . Please read the below

https://blog.kristianwright.com/2013/08/21/aem-best-practice-osgi-configurations/  - This is my main point. Never make Cofig chnages directly in felix console. You are going to have a hard life with that .

Scott's Digital Community: Reading AEM OSGi Configuration Values

4 replies

VeenaVikraman
Community Advisor
Community Advisor
July 25, 2017

Hi Shery

     I am bit confused Could you please shed little light on

               I would like to understand this requirement before even suggesting any idea

Thanks

Veena

smacdonald2008
Level 10
July 25, 2017

Are you talking about how to configure values that an OSGi service can read - if so - see: Scott's Digital Community: Reading AEM OSGi Configuration Values

VeenaVikraman
Community Advisor
VeenaVikramanCommunity AdvisorAccepted solution
Community Advisor
July 25, 2017

I would really love to give you my viewpoints when working with OSGI configurations

In many projects I have taken over from other teams or vendors , one big issue I have always faced is the configs. When you are working with OSGI configs please make sure you handle them by creating config nodes. To ease my job of explaining everything I have dig out some blogs from internet . Please read the below

https://blog.kristianwright.com/2013/08/21/aem-best-practice-osgi-configurations/  - This is my main point. Never make Cofig chnages directly in felix console. You are going to have a hard life with that .

Scott's Digital Community: Reading AEM OSGi Configuration Values

sherybedrock
Level 3
July 25, 2017

  The basic idea is to have a osgi service endpoint from which i retrive a json and then this json file fill load some data in my component dynamically, but sometimes the url for the external API will be changed. I have to add possibility to configure the url and maybe to be configurable with run modes somehow .