There is any way to get by code the application name on Java GAE?
I need to configure some objects according with my application instance (production or development), and I want to build a automatic way.
String ID = SystemProperty.applicationId.get();
You can find more details at the following URL
https://developers.google.com/appengine/docs/java/#Java_The_environment
Try using App Identity
Calling:
String serviceAccountName = AppIdentityServiceFactory.getAppIdentityService().getServiceAccountName();
The serviceAccountName
will be set as <app name>@appspot.gserviceaccount.com
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With