Update OSGI configs with groovy.

Avatar

Avatar

anelem1760873

Avatar

anelem1760873

anelem1760873

21-01-2021

Hi There,

 

Is there a way in AEM we can update the OSGI config with groovy.

 

Thanks

@Aem

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

BrianKasingli

MVP

Avatar

BrianKasingli

MVP

BrianKasingli
MVP

22-01-2021

@anelem1760873,

I wouldn't want to be using the Groovy console to change any configurations in the OSGI console. The standard way to update custom code package configurations will be to place configuration under /apps/my-app/configs/*; a full tutorial here. https://helpx.adobe.com/uk/experience-manager/6-3/sites/deploying/using/configuring-osgi.html

For automation, It's better to use a curl command, https://sourcedcode.com/blog/aem/tool-generate-curl-command-to-update-osgi-configurations, where you can write automation scripts to update your OSGI configurations. 

Answers (2)

Answers (2)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

879

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

879
Arun_Patidar
MVP

22-01-2021

If you have repository based configuration then only you should use groovy, otherwise use curl to update web console based osgi console.