Loading OSGI configurations from external folder | Community
Skip to main content
tsap15
New Participant
October 16, 2015
Solved

Loading OSGI configurations from external folder

  • October 16, 2015
  • 1 reply
  • 479 views

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.
Best answer by smacdonald2008

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
New Participant
October 16, 2015

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