Hi Community,
1. Is there any way we can save some custom values to our custom OSGI configuration from java code? Please help to share any code or doc for the same.
2. Is there any way we can access OSGI console on AEMaaCS like we have localhost:4502/system/console ? If not then how can we manage these configurations dynamically on cloud ?
Please help me with the above questions.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
I am hoping you are referring to the AEM cloud service.
1. For Configurations -
Through Java code, you cannot directly save the configurations values however you can give the default values in your configuration Java code. refer below code -
For Example client ID - you need to append the default and value " " after String client_id();
2. Managing the configurations in Cloud -
i) We can not access the system/console directly in the cloud. however, you can view these configurations from the developer console of the cloud manager instance.
ii) You can write a custom code to create a dashboard to monitor your cloud manager configurations but using these api's. this will help you not to login into cloud manager.
https://developer.adobe.com/experience-cloud/cloud-manager/reference/api/
iii) If you want to update the configuration on runtime directly on the cloud then you can make use of the environment variable. please go through the below article step by step and you will understand. it is very helpful.
Please let me know if the above information is useful.
Thank you,
Prince
Hi,
I am hoping you are referring to the AEM cloud service.
1. For Configurations -
Through Java code, you cannot directly save the configurations values however you can give the default values in your configuration Java code. refer below code -
For Example client ID - you need to append the default and value " " after String client_id();
2. Managing the configurations in Cloud -
i) We can not access the system/console directly in the cloud. however, you can view these configurations from the developer console of the cloud manager instance.
ii) You can write a custom code to create a dashboard to monitor your cloud manager configurations but using these api's. this will help you not to login into cloud manager.
https://developer.adobe.com/experience-cloud/cloud-manager/reference/api/
iii) If you want to update the configuration on runtime directly on the cloud then you can make use of the environment variable. please go through the below article step by step and you will understand. it is very helpful.
Please let me know if the above information is useful.
Thank you,
Prince
Hi,
You can check https://github.com/AdobeDocs/experience-manager-cloud-service.en/blob/main/help/implementing/deployi...
Views
Likes
Replies