Context Aware Configuration - is it even being used? and what kind of information would we like to store? | Community
Skip to main content
Level 6
December 29, 2022
Solved

Context Aware Configuration - is it even being used? and what kind of information would we like to store?

  • December 29, 2022
  • 2 replies
  • 1665 views

Hi, 

Just wondering if anyone is using Context Aware Configuration, and if so, you you please answer some of my questions? I have this setup, but I don't think this useful at all... I mean, I don't know what configuration would I store here... why can't I just store some site settings in the page properties tab?

1. Are you even using this feature with AEM?

2. I'm very use to AEM OSGI configurations, which configuration for each env can be used for our backend services, but like Context Aware Configuration is not by environment... so how can this be useful?

3. Can you please give me a scenario for what kind of configuration we would store in the Context Aware Configuration.

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 DEBAL_DAS

Please review my response -

 

1. Are you even using this feature with AEM?

    Yes, I am using Context Aware Configuration in my project.

2. I'm very use to AEM OSGI configurations, which configuration for each env can be used for our backend services, but like Context Aware Configuration is not by environment... so how can this be useful?

 

When Site specific configuration will be required in that case, we need to use Context Aware Configuration. Please refer https://www.youtube.com/watch?v=tj6enQrdaE0 .

 

3. Can you please give me a scenario for what kind of configuration we would store in the Context Aware Configuration.

 

Please review the use cases below and these will give you detail overview about implementation -

Solved: Re: Context Aware Configuration for multi tenant s... - Adobe Experience League Community - 462086

 

Solved: Re: Dynamically choose different participant as ap... - Adobe Experience League Community - 449439

 

Solved: Re: AEM Workflow - Adobe Experience League Community - 449447

Solved: Re: Context Aware - ConfigurationBuilder.as() is r... - Adobe Experience League Community - 440992

 

Solved: Re: Dynamic Client Libraries generation specific t... - Adobe Experience League Community - 439733

 

To answer your point "why can't I just store some site settings in the page properties tab" -

We need to consider two points here 1. We shouldn't allow content authors to make sudden changes at configuration. We have to be very cautious while defining the approach. and 2. effort 

 

Hope this will help.

2 replies

aanchal-sikka
Community Advisor
Community Advisor
December 30, 2022

Hello @supportmember 

 

Content-aware configurations are an easy way to store configs that dependent on page hierarchy. Specially if a customer has multiple sites on AEM, it can be really useful to drive site-specific configs.

 

1. Are you even using this feature with AEM? - Yes. In multiple projects

 

2. I'm very use to AEM OSGI configurations, which configuration for each env can be used for our backend services, but like Context Aware Configuration is not by environment... so how can this be useful?

 

OSGi

- OSGi is a good option, when some is runmode driven. Or a config thats applicable for an entire/all env.

- It is recommended to be deployed via code base. 

- In case of AEM as a cloud service, you need deployment to update OSGi configs

 

Context-aware configs:

- the configurations can easily be accessed/updated/maintained by authors via Content-aware pages

- Since, they are created at the same level in hierarchy, where they are supposed to take effect, its easy understand.

- Good way to maintain site specific configs

 

3. Can you please give me a scenario for what kind of configuration we would store in the Context Aware Configuration

- Covered in the above comments

Aanchal Sikka
DEBAL_DAS
DEBAL_DASAccepted solution
New Member
December 30, 2022

Please review my response -

 

1. Are you even using this feature with AEM?

    Yes, I am using Context Aware Configuration in my project.

2. I'm very use to AEM OSGI configurations, which configuration for each env can be used for our backend services, but like Context Aware Configuration is not by environment... so how can this be useful?

 

When Site specific configuration will be required in that case, we need to use Context Aware Configuration. Please refer https://www.youtube.com/watch?v=tj6enQrdaE0 .

 

3. Can you please give me a scenario for what kind of configuration we would store in the Context Aware Configuration.

 

Please review the use cases below and these will give you detail overview about implementation -

Solved: Re: Context Aware Configuration for multi tenant s... - Adobe Experience League Community - 462086

 

Solved: Re: Dynamically choose different participant as ap... - Adobe Experience League Community - 449439

 

Solved: Re: AEM Workflow - Adobe Experience League Community - 449447

Solved: Re: Context Aware - ConfigurationBuilder.as() is r... - Adobe Experience League Community - 440992

 

Solved: Re: Dynamic Client Libraries generation specific t... - Adobe Experience League Community - 439733

 

To answer your point "why can't I just store some site settings in the page properties tab" -

We need to consider two points here 1. We shouldn't allow content authors to make sudden changes at configuration. We have to be very cautious while defining the approach. and 2. effort 

 

Hope this will help.

Debal Das, Senior AEM Consultant