Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Update OSGI configs with groovy.

Avatar

Level 4

Hi There,

 

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

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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. 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@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. 

Avatar

Community Advisor

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



Arun Patidar