Using Environment Variables in OSGi configurations as part of String
Hey all,
I am trying to use environment variables to setup certain configurations -
{
"getAPIEndPoint": "$[env:ENDPOINT_Sys;default=/public/dev4/v1/store/store]",
}
This I know if allowed but is it possible to reference the environment variable directly in any OSGi configuration as shown below -
Here the api_env is an environment variable but not tied to any OSGi configuration - Is it allowed to use this environment variable directly on the fly?
{
"getAPIEndPoint": "/public/$[env:api_env;default=dev4]/v1/category/api/v1/categories",
}
As per https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/how-to-access-environment-variables-from-aem-as-cloud-service/td-p/635078 we need to establish an OSGi configuration if we want to use an environment variable as part of another java osgi service.
thanks,