Skip to main content
tsap15
Oct 16, 2015 2:28 AM UTC
Solved

Loading OSGI configurations from external folder

Hi,

Typically I would use run modes to separate OSGi system configurations per environment and all in the one package, this has worked well. However a security team has raised concern around storing Production configurations alongside dev/sit configurations, and want to externalise those configurations into a separate folder outside CQ, then load them (potentially by adding a classpath parameter).

Has anyone attempted a similar setup, and/or how have you achieved a result with similar constraints?

 

Cheers

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

Configuring OSGi using settings defined outside of CQ is not best practice.  It would not work without extra coding. That is- reading the config values where they are stored and then using JCR API to update the OSGi nodes (content-nodes (sling:OsgiConfig) in the repository).

See this AEM doc topic for the supported methods: 

https://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/configuring-osgi.html

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

Configuring OSGi using settings defined outside of CQ is not best practice.  It would not work without extra coding. That is- reading the config values where they are stored and then using JCR API to update the OSGi nodes (content-nodes (sling:OsgiConfig) in the repository).

See this AEM doc topic for the supported methods: 

https://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/configuring-osgi.html

Translate