Is there a way to get the application name in Java GAE by code?
I need to configure some objects according to my application instance (production or development), and I want to create an automatic path.
Try using Application ID
Vocation:
String serviceAccountName = AppIdentityServiceFactory.getAppIdentityService().getServiceAccountName();
serviceAccountName will be set as <app name>@appspot.gserviceaccount.com
serviceAccountName
<app name>@appspot.gserviceaccount.com
String ID = SystemProperty.applicationId.get();
You can find more information at the following URL
https://developers.google.com/appengine/docs/java/#Java_The_environment
This gives you the application id:
ApiProxy.getCurrentEnvironment().getAppId()
https://cloud.google.com/appengine/docs/java/appidentity/?csw=1#Java_Identifying_itself
Source: https://habr.com/ru/post/1391675/More articles:Run 4th capital letter of string in Python? - pythonFollow the link with one user - vb.netproperties as an array - arrayshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1391673/chrome-fails-to-show-http-authentication-window&usg=ALkJrhi1Y4X-1m0MNY2SlAvqhCyYekLHHgHow can I define IOCTL_ATA_PASS_THROUGH in delphi? - c ++Convert whole to currency - c #is there any difference between jquery code? - performanceThe aspectJ compiler does not run because the project is not a Javapathpath compatible package - mavenRspec has_many check: via and after_save - ruby โโ| fooobar.comCalculation of working time between two dates - dateAll Articles