Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Update OSGI configs with groovy.

anelem1760873
Level 4
Level 4

Hi There,

 

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

 

Thanks

@Aem
1 Accepted Solution
BrianKasingli
Correct answer by
Community Advisor
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
BrianKasingli
Correct answer by
Community Advisor
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

Arun_Patidar
Community Advisor
Community Advisor

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